} else if (mdev->hca_type == ARBEL_NATIVE || mdev->hca_type == ARBEL_COMPAT) 
} else if (mdev->mthca_flags & MTHCA_FLAG_PCIE) 
static int __devinit mthca_tune_pci(struct mthca_dev *mdev){	int cap;	u16 val;	/* First try to max out Read Byte Count */	cap = pci_find_capability(mdev->pdev, PCI_CAP_ID_PCIX);	if (cap) {		if (pci_read_config_word(mdev->pdev, cap + PCI_X_CMD, &val)) {			mthca_err(mdev, "Couldn't read PCI-X command register, "				  "aborting.\n");			return -ENODEV;		}		val = (val & ~PCI_X_CMD_MAX_READ) | (3 << 2);		if (pci_write_config_word(mdev->pdev, cap + PCI_X_CMD, val)) {			mthca_err(mdev, "Couldn't write PCI-X command register, "				  "aborting.\n");			return -ENODEV;		}	} else if (mdev->hca_type == TAVOR)		mthca_info(mdev, "No PCI-X capability, not setting RBC.\n");	cap = pci_find_capability(mdev->pdev, PCI_CAP_ID_EXP);	if (cap) {		if (pci_read_config_word(mdev->pdev, cap + PCI_EXP_DEVCTL, &val)) {			mthca_err(mdev, "Couldn't read PCI Express device control "				  "register, aborting.\n");			return -ENODEV;		}		val = (val & ~PCI_EXP_DEVCTL_READRQ) | (5 << 12);		if (pci_write_config_word(mdev->pdev, cap + PCI_EXP_DEVCTL, val)) {			mthca_err(mdev, "Couldn't write PCI Express device control "				  "register, aborting.\n");			return -ENODEV;		}	} else if (mdev->hca_type == ARBEL_NATIVE ||		   mdev->hca_type == ARBEL_COMPAT)		mthca_info(mdev, "No PCI Express capability, "			   "not setting Max Read Request Size.\n");	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/68a3c21203b73696769dfdceb68d2d7f5d3c20a0/mthca_main.c/clean/drivers/infiniband/hw/mthca/mthca_main.c