[dpdk-dev,2/4] bcm: add BCM pci device ids

Message ID 1423247795-22399-3-git-send-email-stephen@networkplumber.org (mailing list archive)
State Superseded, archived
Headers

Commit Message

Stephen Hemminger Feb. 6, 2015, 6:36 p.m. UTC
From: Stephen Hemminger <shemming@brocade.com>

Add PCI id's to enable BCM poll mode driver.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 lib/librte_eal/common/include/rte_pci_dev_ids.h | 30 +++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
  

Patch

diff --git a/lib/librte_eal/common/include/rte_pci_dev_ids.h b/lib/librte_eal/common/include/rte_pci_dev_ids.h
index c922de9..b53fd93 100644
--- a/lib/librte_eal/common/include/rte_pci_dev_ids.h
+++ b/lib/librte_eal/common/include/rte_pci_dev_ids.h
@@ -132,6 +132,14 @@ 
 #define RTE_PCI_DEV_ID_DECL_VMXNET3(vend, dev)
 #endif
 
+#ifndef RTE_PCI_DEV_ID_DECL_BCM
+#define RTE_PCI_DEV_ID_DECL_BCM(vend, dev)
+#endif
+
+#ifndef RTE_PCI_DEV_ID_DECL_BCMVF
+#define RTE_PCI_DEV_ID_DECL_BCMVF(vend, dev)
+#endif
+
 #ifndef PCI_VENDOR_ID_INTEL
 /** Vendor ID used by Intel devices */
 #define PCI_VENDOR_ID_INTEL 0x8086
@@ -147,6 +155,11 @@ 
 #define PCI_VENDOR_ID_VMWARE 0x15AD
 #endif
 
+#ifndef PCI_VENDOR_ID_BROADCOM
+/** Vendor ID used by Broadcom devices */
+#define PCI_VENDOR_ID_BROADCOM 0x14E4
+#endif
+
 /******************** Physical EM devices from e1000_hw.h ********************/
 
 #define E1000_DEV_ID_82542                    0x1000
@@ -526,6 +539,21 @@  RTE_PCI_DEV_ID_DECL_VIRTIO(PCI_VENDOR_ID_QUMRANET, QUMRANET_DEV_ID_VIRTIO)
 
 RTE_PCI_DEV_ID_DECL_VMXNET3(PCI_VENDOR_ID_VMWARE, VMWARE_DEV_ID_VMXNET3)
 
+/****************** Broadcom devices ******************/
+
+/* Broadcom */
+#define BROADCOM_DEV_ID_57711		    0x164F
+#define BROADCOM_DEV_ID_57810		    0x168E
+#define BROADCOM_DEV_ID_57810_MF	    0x16AE
+#define BROADCOM_DEV_ID_57810_VF	    0x16AF
+
+RTE_PCI_DEV_ID_DECL_BCM(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_57711)
+RTE_PCI_DEV_ID_DECL_BCM(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_57810)
+#ifdef RTE_LIBRTE_BCM_MF_SUPPORT
+RTE_PCI_DEV_ID_DECL_BCM(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_57810_MF)
+#endif
+RTE_PCI_DEV_ID_DECL_BCMVF(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_57810_VF)
+
 /*
  * Undef all RTE_PCI_DEV_ID_DECL_* here.
  */
@@ -538,3 +566,5 @@  RTE_PCI_DEV_ID_DECL_VMXNET3(PCI_VENDOR_ID_VMWARE, VMWARE_DEV_ID_VMXNET3)
 #undef RTE_PCI_DEV_ID_DECL_I40EVF
 #undef RTE_PCI_DEV_ID_DECL_VIRTIO
 #undef RTE_PCI_DEV_ID_DECL_VMXNET3
+#undef RTE_PCI_DEV_ID_DECL_BCM
+#undef RTE_PCI_DEV_ID_DECL_BCMVF