summaryrefslogtreecommitdiffstats
path: root/drivers/ntb
diff options
context:
space:
mode:
authorJon Mason <jon.mason@intel.com>2012-09-28 14:38:48 -0400
committerJon Mason <jon.mason@intel.com>2013-09-03 17:48:53 -0400
commitbe4dac0fcacd7d62e0b4f7ff51a7032e197b62af (patch)
tree447d6181ed4ff4e8f029374371b2af8e3229bf8e /drivers/ntb
parent113bf1c9f1e035129f8631b032669d6ab36a14dd (diff)
NTB: Update Device IDs
Add support for new Intel NTB devices on upcoming Xeon hardware. Since the Xeon hardware design is already in place in the driver, all that is needed are the new device ids. Remove the device IDs for NTB devs running in Transparent Bridge mode, as this driver is not being used for those devices. Rename the device IDs for NTB devs running in NTB-RP mode to better identify their usage model. "PS" to denote the Primary Side of NTB, and "SS" to denote the secondary side. The primary side is the interface exposed to the local system, and the secondary side is the interface exposed to the remote system. Signed-off-by: Jon Mason <jon.mason@intel.com>
Diffstat (limited to 'drivers/ntb')
-rw-r--r--drivers/ntb/ntb_hw.c29
-rw-r--r--drivers/ntb/ntb_hw.h15
2 files changed, 30 insertions, 14 deletions
diff --git a/drivers/ntb/ntb_hw.c b/drivers/ntb/ntb_hw.c
index 3493e9516519..784446e1de05 100644
--- a/drivers/ntb/ntb_hw.c
+++ b/drivers/ntb/ntb_hw.c
@@ -94,11 +94,17 @@ static struct dentry *debugfs_dir;
94static DEFINE_PCI_DEVICE_TABLE(ntb_pci_tbl) = { 94static DEFINE_PCI_DEVICE_TABLE(ntb_pci_tbl) = {
95 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_B2B_BWD)}, 95 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_B2B_BWD)},
96 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_B2B_JSF)}, 96 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_B2B_JSF)},
97 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_CLASSIC_JSF)},
98 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_RP_JSF)},
99 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_RP_SNB)},
100 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_B2B_SNB)}, 97 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_B2B_SNB)},
101 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_CLASSIC_SNB)}, 98 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_B2B_IVT)},
99 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_B2B_HSX)},
100 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_PS_JSF)},
101 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_PS_SNB)},
102 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_PS_IVT)},
103 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_PS_HSX)},
104 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_SS_JSF)},
105 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_SS_SNB)},
106 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_SS_IVT)},
107 {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_NTB_SS_HSX)},
102 {0} 108 {0}
103}; 109};
104MODULE_DEVICE_TABLE(pci, ntb_pci_tbl); 110MODULE_DEVICE_TABLE(pci, ntb_pci_tbl);
@@ -815,13 +821,18 @@ static int ntb_device_setup(struct ntb_device *ndev)
815 int rc; 821 int rc;
816 822
817 switch (ndev->pdev->device) { 823 switch (ndev->pdev->device) {
818 case PCI_DEVICE_ID_INTEL_NTB_2ND_SNB: 824 case PCI_DEVICE_ID_INTEL_NTB_SS_JSF:
819 case PCI_DEVICE_ID_INTEL_NTB_RP_JSF: 825 case PCI_DEVICE_ID_INTEL_NTB_SS_SNB:
820 case PCI_DEVICE_ID_INTEL_NTB_RP_SNB: 826 case PCI_DEVICE_ID_INTEL_NTB_SS_IVT:
821 case PCI_DEVICE_ID_INTEL_NTB_CLASSIC_JSF: 827 case PCI_DEVICE_ID_INTEL_NTB_SS_HSX:
822 case PCI_DEVICE_ID_INTEL_NTB_CLASSIC_SNB: 828 case PCI_DEVICE_ID_INTEL_NTB_PS_JSF:
829 case PCI_DEVICE_ID_INTEL_NTB_PS_SNB:
830 case PCI_DEVICE_ID_INTEL_NTB_PS_IVT:
831 case PCI_DEVICE_ID_INTEL_NTB_PS_HSX:
823 case PCI_DEVICE_ID_INTEL_NTB_B2B_JSF: 832 case PCI_DEVICE_ID_INTEL_NTB_B2B_JSF:
824 case PCI_DEVICE_ID_INTEL_NTB_B2B_SNB: 833 case PCI_DEVICE_ID_INTEL_NTB_B2B_SNB:
834 case PCI_DEVICE_ID_INTEL_NTB_B2B_IVT:
835 case PCI_DEVICE_ID_INTEL_NTB_B2B_HSX:
825 rc = ntb_xeon_setup(ndev); 836 rc = ntb_xeon_setup(ndev);
826 break; 837 break;
827 case PCI_DEVICE_ID_INTEL_NTB_B2B_BWD: 838 case PCI_DEVICE_ID_INTEL_NTB_B2B_BWD:
diff --git a/drivers/ntb/ntb_hw.h b/drivers/ntb/ntb_hw.h
index 3a15d492593c..591d4ff5d88e 100644
--- a/drivers/ntb/ntb_hw.h
+++ b/drivers/ntb/ntb_hw.h
@@ -47,12 +47,17 @@
47 */ 47 */
48 48
49#define PCI_DEVICE_ID_INTEL_NTB_B2B_JSF 0x3725 49#define PCI_DEVICE_ID_INTEL_NTB_B2B_JSF 0x3725
50#define PCI_DEVICE_ID_INTEL_NTB_CLASSIC_JSF 0x3726 50#define PCI_DEVICE_ID_INTEL_NTB_PS_JSF 0x3726
51#define PCI_DEVICE_ID_INTEL_NTB_RP_JSF 0x3727 51#define PCI_DEVICE_ID_INTEL_NTB_SS_JSF 0x3727
52#define PCI_DEVICE_ID_INTEL_NTB_RP_SNB 0x3C08
53#define PCI_DEVICE_ID_INTEL_NTB_B2B_SNB 0x3C0D 52#define PCI_DEVICE_ID_INTEL_NTB_B2B_SNB 0x3C0D
54#define PCI_DEVICE_ID_INTEL_NTB_CLASSIC_SNB 0x3C0E 53#define PCI_DEVICE_ID_INTEL_NTB_PS_SNB 0x3C0E
55#define PCI_DEVICE_ID_INTEL_NTB_2ND_SNB 0x3C0F 54#define PCI_DEVICE_ID_INTEL_NTB_SS_SNB 0x3C0F
55#define PCI_DEVICE_ID_INTEL_NTB_B2B_IVT 0x0E0D
56#define PCI_DEVICE_ID_INTEL_NTB_PS_IVT 0x0E0E
57#define PCI_DEVICE_ID_INTEL_NTB_SS_IVT 0x0E0F
58#define PCI_DEVICE_ID_INTEL_NTB_B2B_HSX 0x2F0D
59#define PCI_DEVICE_ID_INTEL_NTB_PS_HSX 0x2F0E
60#define PCI_DEVICE_ID_INTEL_NTB_SS_HSX 0x2F0F
56#define PCI_DEVICE_ID_INTEL_NTB_B2B_BWD 0x0C4E 61#define PCI_DEVICE_ID_INTEL_NTB_B2B_BWD 0x0C4E
57 62
58#define msix_table_size(control) ((control & PCI_MSIX_FLAGS_QSIZE)+1) 63#define msix_table_size(control) ((control & PCI_MSIX_FLAGS_QSIZE)+1)