aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x_hsi.h
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-02-12 03:36:47 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-16 02:31:15 -0500
commit35b19ba51c1e6258a338a0855c72384abc33ce11 (patch)
treecf67f18b4ec1d228fdef2e607e814c2fa48d8137 /drivers/net/bnx2x_hsi.h
parent1c06328c0345638ea7532b45cadfe713c9e9781e (diff)
bnx2x: Removing the board type
There are too many different board types and this field is not scalable. Removing it and making decisions according to other fields Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_hsi.h')
-rw-r--r--drivers/net/bnx2x_hsi.h34
1 files changed, 7 insertions, 27 deletions
diff --git a/drivers/net/bnx2x_hsi.h b/drivers/net/bnx2x_hsi.h
index b0f41d1f9ab4..85e4df68b5d8 100644
--- a/drivers/net/bnx2x_hsi.h
+++ b/drivers/net/bnx2x_hsi.h
@@ -119,35 +119,15 @@ struct shared_hw_cfg { /* NVRAM Offset */
119#define SHARED_HW_CFG_UMP_NC_SI_EXT_PHY_TYPE_BCM5221 0x00010000 119#define SHARED_HW_CFG_UMP_NC_SI_EXT_PHY_TYPE_BCM5221 0x00010000
120 120
121 u32 board; /* 0x124 */ 121 u32 board; /* 0x124 */
122#define SHARED_HW_CFG_BOARD_TYPE_MASK 0x0000ffff 122#define SHARED_HW_CFG_BOARD_REV_MASK 0x00FF0000
123#define SHARED_HW_CFG_BOARD_TYPE_SHIFT 0
124#define SHARED_HW_CFG_BOARD_TYPE_NONE 0x00000000
125#define SHARED_HW_CFG_BOARD_TYPE_BCM957710T1000 0x00000001
126#define SHARED_HW_CFG_BOARD_TYPE_BCM957710T1001 0x00000002
127#define SHARED_HW_CFG_BOARD_TYPE_BCM957710T1002G 0x00000003
128#define SHARED_HW_CFG_BOARD_TYPE_BCM957710T1004G 0x00000004
129#define SHARED_HW_CFG_BOARD_TYPE_BCM957710T1007G 0x00000005
130#define SHARED_HW_CFG_BOARD_TYPE_BCM957710T1015G 0x00000006
131#define SHARED_HW_CFG_BOARD_TYPE_BCM957710A1020G 0x00000007
132#define SHARED_HW_CFG_BOARD_TYPE_BCM957710T1003G 0x00000008
133#define SHARED_HW_CFG_BOARD_TYPE_BCM957710A1022G 0x00000009
134#define SHARED_HW_CFG_BOARD_TYPE_BCM957710A1021G 0x0000000a
135#define SHARED_HW_CFG_BOARD_TYPE_BCM957710A1023G 0x0000000b
136#define SHARED_HW_CFG_BOARD_TYPE_BCM957710A1033G 0x0000000c
137#define SHARED_HW_CFG_BOARD_TYPE_BCM957711T1101 0x0000000d
138#define SHARED_HW_CFG_BOARD_TYPE_BCM957711ET1201 0x0000000e
139#define SHARED_HW_CFG_BOARD_TYPE_BCM957711A1133G 0x0000000f
140#define SHARED_HW_CFG_BOARD_TYPE_BCM957711EA1233G 0x00000010
141
142#define SHARED_HW_CFG_BOARD_VER_MASK 0xffff0000
143#define SHARED_HW_CFG_BOARD_VER_SHIFT 16
144#define SHARED_HW_CFG_BOARD_MAJOR_VER_MASK 0xf0000000
145#define SHARED_HW_CFG_BOARD_MAJOR_VER_SHIFT 28
146#define SHARED_HW_CFG_BOARD_MINOR_VER_MASK 0x0f000000
147#define SHARED_HW_CFG_BOARD_MINOR_VER_SHIFT 24
148#define SHARED_HW_CFG_BOARD_REV_MASK 0x00ff0000
149#define SHARED_HW_CFG_BOARD_REV_SHIFT 16 123#define SHARED_HW_CFG_BOARD_REV_SHIFT 16
150 124
125#define SHARED_HW_CFG_BOARD_MAJOR_VER_MASK 0x0F000000
126#define SHARED_HW_CFG_BOARD_MAJOR_VER_SHIFT 24
127
128#define SHARED_HW_CFG_BOARD_MINOR_VER_MASK 0xF0000000
129#define SHARED_HW_CFG_BOARD_MINOR_VER_SHIFT 28
130
151 u32 reserved; /* 0x128 */ 131 u32 reserved; /* 0x128 */
152 132
153}; 133};