diff options
author | Michael Chan <mchan@broadcom.com> | 2010-10-13 10:06:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-14 13:45:56 -0400 |
commit | ee87a82a28cddbb9267a294172ecb3d3d3bdaa6c (patch) | |
tree | 8bb591fea143738d9b4c45c73a8fbe6db53ce385 /drivers/net/cnic.h | |
parent | a3ceeeb8f11d74f26e3dfca40ded911a82402db5 (diff) |
cnic: Add support for 57712 device
Add new interrupt ack functions and other hardware interface logic to
support the new device.
Update version to 2.2.6.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cnic.h')
-rw-r--r-- | drivers/net/cnic.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/net/cnic.h b/drivers/net/cnic.h index 928af9e64824..6a4a0ae5cfe3 100644 --- a/drivers/net/cnic.h +++ b/drivers/net/cnic.h | |||
@@ -372,15 +372,35 @@ struct bnx2x_bd_chain_next { | |||
372 | #define BNX2X_ISCSI_PBL_NOT_CACHED 0xff | 372 | #define BNX2X_ISCSI_PBL_NOT_CACHED 0xff |
373 | #define BNX2X_ISCSI_PDU_HEADER_NOT_CACHED 0xff | 373 | #define BNX2X_ISCSI_PDU_HEADER_NOT_CACHED 0xff |
374 | 374 | ||
375 | #define BNX2X_CHIP_NUM_57710 0x164e | ||
375 | #define BNX2X_CHIP_NUM_57711 0x164f | 376 | #define BNX2X_CHIP_NUM_57711 0x164f |
376 | #define BNX2X_CHIP_NUM_57711E 0x1650 | 377 | #define BNX2X_CHIP_NUM_57711E 0x1650 |
378 | #define BNX2X_CHIP_NUM_57712 0x1662 | ||
379 | #define BNX2X_CHIP_NUM_57712E 0x1663 | ||
380 | #define BNX2X_CHIP_NUM_57713 0x1651 | ||
381 | #define BNX2X_CHIP_NUM_57713E 0x1652 | ||
382 | |||
377 | #define BNX2X_CHIP_NUM(x) (x >> 16) | 383 | #define BNX2X_CHIP_NUM(x) (x >> 16) |
384 | #define BNX2X_CHIP_IS_57710(x) \ | ||
385 | (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57710) | ||
378 | #define BNX2X_CHIP_IS_57711(x) \ | 386 | #define BNX2X_CHIP_IS_57711(x) \ |
379 | (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57711) | 387 | (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57711) |
380 | #define BNX2X_CHIP_IS_57711E(x) \ | 388 | #define BNX2X_CHIP_IS_57711E(x) \ |
381 | (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57711E) | 389 | (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57711E) |
382 | #define BNX2X_CHIP_IS_E1H(x) \ | 390 | #define BNX2X_CHIP_IS_E1H(x) \ |
383 | (BNX2X_CHIP_IS_57711(x) || BNX2X_CHIP_IS_57711E(x)) | 391 | (BNX2X_CHIP_IS_57711(x) || BNX2X_CHIP_IS_57711E(x)) |
392 | #define BNX2X_CHIP_IS_57712(x) \ | ||
393 | (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57712) | ||
394 | #define BNX2X_CHIP_IS_57712E(x) \ | ||
395 | (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57712E) | ||
396 | #define BNX2X_CHIP_IS_57713(x) \ | ||
397 | (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57713) | ||
398 | #define BNX2X_CHIP_IS_57713E(x) \ | ||
399 | (BNX2X_CHIP_NUM(x) == BNX2X_CHIP_NUM_57713E) | ||
400 | #define BNX2X_CHIP_IS_E2(x) \ | ||
401 | (BNX2X_CHIP_IS_57712(x) || BNX2X_CHIP_IS_57712E(x) || \ | ||
402 | BNX2X_CHIP_IS_57713(x) || BNX2X_CHIP_IS_57713E(x)) | ||
403 | |||
384 | #define IS_E1H_OFFSET BNX2X_CHIP_IS_E1H(cp->chip_id) | 404 | #define IS_E1H_OFFSET BNX2X_CHIP_IS_E1H(cp->chip_id) |
385 | 405 | ||
386 | #define BNX2X_RX_DESC_CNT (BCM_PAGE_SIZE / sizeof(struct eth_rx_bd)) | 406 | #define BNX2X_RX_DESC_CNT (BCM_PAGE_SIZE / sizeof(struct eth_rx_bd)) |
@@ -409,6 +429,8 @@ struct bnx2x_bd_chain_next { | |||
409 | 429 | ||
410 | #define CNIC_PORT(cp) ((cp)->pfid & 1) | 430 | #define CNIC_PORT(cp) ((cp)->pfid & 1) |
411 | #define CNIC_FUNC(cp) ((cp)->func) | 431 | #define CNIC_FUNC(cp) ((cp)->func) |
432 | #define CNIC_PATH(cp) (!BNX2X_CHIP_IS_E2(cp->chip_id) ? 0 :\ | ||
433 | (CNIC_FUNC(cp) & 1)) | ||
412 | #define CNIC_E1HVN(cp) ((cp)->pfid >> 1) | 434 | #define CNIC_E1HVN(cp) ((cp)->pfid >> 1) |
413 | 435 | ||
414 | #define BNX2X_HW_CID(cp, x) ((CNIC_PORT(cp) << 23) | \ | 436 | #define BNX2X_HW_CID(cp, x) ((CNIC_PORT(cp) << 23) | \ |