From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [PATCH 2/4] bcm: add BCM pci device ids Date: Fri, 6 Feb 2015 10:36:33 -0800 Message-ID: <1423247795-22399-3-git-send-email-stephen@networkplumber.org> References: <1423247795-22399-1-git-send-email-stephen@networkplumber.org> Cc: Stephen Hemminger To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1423247795-22399-1-git-send-email-stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" From: Stephen Hemminger Add PCI id's to enable BCM poll mode driver. Signed-off-by: Stephen Hemminger --- lib/librte_eal/common/include/rte_pci_dev_ids.h | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) 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 -- 2.1.4