aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cnic.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2011-06-20 11:15:56 -0400
committerDavid S. Miller <davem@davemloft.net>2011-06-21 19:06:11 -0400
commitf4b5ad26bcb983c493e131ff34b2fa60100c82e5 (patch)
tree3b5c0ac4d2d4a9b5b21a40c30ee4c360162efc31 /drivers/net/cnic.h
parent3847ce32aea9fdf56022de132000e8cf139042eb (diff)
cnic, bnx2i: Add support for new devices - 57800, 57810, and 57840
And change iSCSI RQ doorbell size from 16B to 64B to match new firmware. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: Eddie Wai <eddie.wai@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cnic.h')
-rw-r--r--drivers/net/cnic.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/net/cnic.h b/drivers/net/cnic.h
index 330ef9350413..7a2928f82d40 100644
--- a/drivers/net/cnic.h
+++ b/drivers/net/cnic.h
@@ -384,6 +384,9 @@ struct bnx2x_bd_chain_next {
384#define BNX2X_CHIP_NUM_57712E 0x1663 384#define BNX2X_CHIP_NUM_57712E 0x1663
385#define BNX2X_CHIP_NUM_57713 0x1651 385#define BNX2X_CHIP_NUM_57713 0x1651
386#define BNX2X_CHIP_NUM_57713E 0x1652 386#define BNX2X_CHIP_NUM_57713E 0x1652
387#define BNX2X_CHIP_NUM_57800 0x168a
388#define BNX2X_CHIP_NUM_57810 0x168e
389#define BNX2X_CHIP_NUM_57840 0x168d
387 390
388#define BNX2X_CHIP_NUM(x) (x >> 16) 391#define BNX2X_CHIP_NUM(x) (x >> 16)
389#define BNX2X_CHIP_IS_57710(x) \ 392#define BNX2X_CHIP_IS_57710(x) \
@@ -402,10 +405,19 @@ struct bnx2x_bd_chain_next {
402 (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57713) 405 (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57713)
403#define BNX2X_CHIP_IS_57713E(x) \ 406#define BNX2X_CHIP_IS_57713E(x) \
404 (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57713E) 407 (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57713E)
408#define BNX2X_CHIP_IS_57800(x) \
409 (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57800)
410#define BNX2X_CHIP_IS_57810(x) \
411 (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57810)
412#define BNX2X_CHIP_IS_57840(x) \
413 (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57840)
405#define BNX2X_CHIP_IS_E2(x) \ 414#define BNX2X_CHIP_IS_E2(x) \
406 (BNX2X_CHIP_IS_57712(x) || BNX2X_CHIP_IS_57712E(x) || \ 415 (BNX2X_CHIP_IS_57712(x) || BNX2X_CHIP_IS_57712E(x) || \
407 BNX2X_CHIP_IS_57713(x) || BNX2X_CHIP_IS_57713E(x)) 416 BNX2X_CHIP_IS_57713(x) || BNX2X_CHIP_IS_57713E(x))
408#define BNX2X_CHIP_IS_E2_PLUS(x) BNX2X_CHIP_IS_E2(x) 417#define BNX2X_CHIP_IS_E3(x) \
418 (BNX2X_CHIP_IS_57800(x) || BNX2X_CHIP_IS_57810(x) || \
419 BNX2X_CHIP_IS_57840(x))
420#define BNX2X_CHIP_IS_E2_PLUS(x) (BNX2X_CHIP_IS_E2(x) || BNX2X_CHIP_IS_E3(x))
409 421
410#define IS_E1H_OFFSET BNX2X_CHIP_IS_E1H(cp->chip_id) 422#define IS_E1H_OFFSET BNX2X_CHIP_IS_E1H(cp->chip_id)
411 423