err = mthca_cmd_box(dev, 0, outdma, 0, 0, CMD_QUERY_ADAPTER, 
err = mthca_cmd_box(dev, 0, mailbox->dma, 0, 0, CMD_QUERY_ADAPTER, 
int mthca_QUERY_ADAPTER(struct mthca_dev *dev,			struct mthca_adapter *adapter, u8 *status){	u32 *outbox;	dma_addr_t outdma;	int err;#define QUERY_ADAPTER_OUT_SIZE             0x100#define QUERY_ADAPTER_VENDOR_ID_OFFSET     0x00#define QUERY_ADAPTER_DEVICE_ID_OFFSET     0x04#define QUERY_ADAPTER_REVISION_ID_OFFSET   0x08#define QUERY_ADAPTER_INTA_PIN_OFFSET      0x10	outbox = pci_alloc_consistent(dev->pdev, QUERY_ADAPTER_OUT_SIZE, &outdma);	if (!outbox)		return -ENOMEM;	err = mthca_cmd_box(dev, 0, outdma, 0, 0, CMD_QUERY_ADAPTER,			    CMD_TIME_CLASS_A, status);	if (err)		goto out;	MTHCA_GET(adapter->vendor_id, outbox, QUERY_ADAPTER_VENDOR_ID_OFFSET);	MTHCA_GET(adapter->device_id, outbox, QUERY_ADAPTER_DEVICE_ID_OFFSET);	MTHCA_GET(adapter->revision_id, outbox, QUERY_ADAPTER_REVISION_ID_OFFSET);	MTHCA_GET(adapter->inta_pin, outbox, QUERY_ADAPTER_INTA_PIN_OFFSET);out:	pci_free_consistent(dev->pdev, QUERY_DEV_LIM_OUT_SIZE, outbox, outdma);	return err;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/ed878458eeff9754d66f1b0325df6ebbfcdce668/mthca_cmd.c/clean/drivers/infiniband/hw/mthca/mthca_cmd.c