summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/chelsio/cxgb4/t4_chip_type.h
diff options
context:
space:
mode:
authorGanesh Goudar <ganeshgr@chelsio.com>2018-05-24 16:02:15 +0300
committerDavid S. Miller <davem@davemloft.net>2018-05-25 21:59:38 +0300
commite8d452923ae6cdcf2fd7bf4fac4a3751eda56931 (patch)
tree29e2c25762a26832571b00341d30321e559b2b94 /drivers/net/ethernet/chelsio/cxgb4/t4_chip_type.h
parent57ccaedb74158be6d7d6edb255a6c153ec19e618 (diff)
downloadlinux-e8d452923ae6cdcf2fd7bf4fac4a3751eda56931.tar.xz
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