summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4/t4_chip_type.h
diff options
context:
space:
mode:
authorGanesh Goudar2018-05-24 15:02:15 +0200
committerDavid S. Miller2018-05-25 20:59:38 +0200
commite8d452923ae6cdcf2fd7bf4fac4a3751eda56931 (patch)
tree29e2c25762a26832571b00341d30321e559b2b94 /drivers/net/ethernet/chelsio/cxgb4/t4_chip_type.h
parentcxgb4/cxgb4vf: link management changes for new SFP (diff)
downloadkernel-qcow2-linux-e8d452923ae6cdcf2fd7bf4fac4a3751eda56931.tar.gz
kernel-qcow2-linux-e8d452923ae6cdcf2fd7bf4fac4a3751eda56931.tar.xz
kernel-qcow2-linux-e8d452923ae6cdcf2fd7bf4fac4a3751eda56931.zip
cxgb4: clean up init_one
clean up init_one and use chip_ver consistently throughout init_one() for chip version. Signed-off-by: Casey Leedom <leedom@chelsio.com> Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/t4_chip_type.h')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/t4_chip_type.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_chip_type.h b/drivers/net/ethernet/chelsio/cxgb4/t4_chip_type.h
index 54b718111e3f..721c77577ec5 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/t4_chip_type.h
+++ b/drivers/net/ethernet/chelsio/cxgb4/t4_chip_type.h
@@ -34,6 +34,8 @@
#ifndef __T4_CHIP_TYPE_H__
#define __T4_CHIP_TYPE_H__
+#define CHELSIO_PCI_ID_VER(__DeviceID) ((__DeviceID) >> 12)
+
#define CHELSIO_T4 0x4
#define CHELSIO_T5 0x5
#define CHELSIO_T6 0x6