From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) by dpdk.org (Postfix) with ESMTP id 17BE9255 for ; Fri, 6 Feb 2015 19:36:40 +0100 (CET) Received: by pdjz10 with SMTP id z10so16342427pdj.13 for ; Fri, 06 Feb 2015 10:36:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CbFGc8dgMSFPZH6hYgu9H7myzhcbG2EMz7u9zgo7/08=; b=Kn78P9/xL2Sz1a8q2eCfGcOKieW/zEBGoA9jvv3bAspyN+wcJHxZfyYpniMzDj/Ezw K2H/FCRhDzsKWy/ZzfZiMyqyQeJ4TLRUMsRQBlWFfP3Yt9w9AgzarSyZ6Cf+1Mh/XSgi d3tjTrI6Psbou7uiOA4rmUBicRea2CZdbvbH+iyp/6BU3jFWy2QWmUPNxHy6DK0aqJoZ xZuXBc5930dHPuWVKUFJTtTpd1jSX62nC7U8/sdKJf0Uc+1+hszQSbtmiwN8WVZzZ5DD bxg3w9ny8CgbTNfnfjBcAtUgjuvNZRoKcCzFYfiDj8z2LffmZVCO5j9Lw3nSDsbVLGDN p5Yg== X-Gm-Message-State: ALoCoQkGbyJ0iI9dSoa/acekSjAcMM/ARdUfcuWgV5hAOYdobH6Oaxg4XNHUSAJAwjF+kkX8ZJ5b X-Received: by 10.68.65.80 with SMTP id v16mr7961296pbs.43.1423247799500; Fri, 06 Feb 2015 10:36:39 -0800 (PST) Received: from urahara.brocade.com (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by mx.google.com with ESMTPSA id sq6sm8517486pbc.40.2015.02.06.10.36.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Feb 2015 10:36:38 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Date: Fri, 6 Feb 2015 10:36:33 -0800 Message-Id: <1423247795-22399-3-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1423247795-22399-1-git-send-email-stephen@networkplumber.org> References: <1423247795-22399-1-git-send-email-stephen@networkplumber.org> Cc: Stephen Hemminger Subject: [dpdk-dev] [PATCH 2/4] bcm: add BCM pci device ids X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2015 18:36:40 -0000 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