aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/benet/be.h')
-rw-r--r--drivers/net/benet/be.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h
index 0b73dcf26924..a7db870d1641 100644
--- a/drivers/net/benet/be.h
+++ b/drivers/net/benet/be.h
@@ -49,6 +49,7 @@
49#define OC_DEVICE_ID1 0x700 /* Device Id for BE2 cards */ 49#define OC_DEVICE_ID1 0x700 /* Device Id for BE2 cards */
50#define OC_DEVICE_ID2 0x710 /* Device Id for BE3 cards */ 50#define OC_DEVICE_ID2 0x710 /* Device Id for BE3 cards */
51#define OC_DEVICE_ID3 0xe220 /* Device id for Lancer cards */ 51#define OC_DEVICE_ID3 0xe220 /* Device id for Lancer cards */
52#define OC_DEVICE_ID4 0xe228 /* Device id for VF in Lancer */
52 53
53static inline char *nic_name(struct pci_dev *pdev) 54static inline char *nic_name(struct pci_dev *pdev)
54{ 55{
@@ -58,6 +59,7 @@ static inline char *nic_name(struct pci_dev *pdev)
58 case OC_DEVICE_ID2: 59 case OC_DEVICE_ID2:
59 return OC_NAME_BE; 60 return OC_NAME_BE;
60 case OC_DEVICE_ID3: 61 case OC_DEVICE_ID3:
62 case OC_DEVICE_ID4:
61 return OC_NAME_LANCER; 63 return OC_NAME_LANCER;
62 case BE_DEVICE_ID2: 64 case BE_DEVICE_ID2:
63 return BE3_NAME; 65 return BE3_NAME;
@@ -383,7 +385,8 @@ struct be_adapter {
383#define BE_GEN2 2 385#define BE_GEN2 2
384#define BE_GEN3 3 386#define BE_GEN3 3
385 387
386#define lancer_chip(adapter) (adapter->pdev->device == OC_DEVICE_ID3) 388#define lancer_chip(adapter) ((adapter->pdev->device == OC_DEVICE_ID3) || \
389 (adapter->pdev->device == OC_DEVICE_ID4))
387 390
388extern const struct ethtool_ops be_ethtool_ops; 391extern const struct ethtool_ops be_ethtool_ops;
389 392