diff options
author | Michael Chan <mchan@broadcom.com> | 2007-12-20 23:01:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:57:38 -0500 |
commit | c76c04758b8fd24a1c38b19742e3437e954e945b (patch) | |
tree | 248d6953e058d7513c5bb9442f24a0ae92ea4305 /drivers/net/bnx2.h | |
parent | b4b360420dcbbffb15f5749fc78225f4113cc7e2 (diff) |
[BNX2]: Add support for a new tx ring.
To separate TX IRQs into a different MSIX vector, we need to
support a new tx ring. The original tx ring will still be used
when not using MSIX.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.h')
-rw-r--r-- | drivers/net/bnx2.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h index d71ceb6c176f..68fb5904f75c 100644 --- a/drivers/net/bnx2.h +++ b/drivers/net/bnx2.h | |||
@@ -6529,6 +6529,9 @@ struct flash_spec { | |||
6529 | 6529 | ||
6530 | #define BNX2_MAX_MSIX_HW_VEC 9 | 6530 | #define BNX2_MAX_MSIX_HW_VEC 9 |
6531 | #define BNX2_MAX_MSIX_VEC 1 | 6531 | #define BNX2_MAX_MSIX_VEC 1 |
6532 | #define BNX2_BASE_VEC 0 | ||
6533 | #define BNX2_TX_VEC 1 | ||
6534 | #define BNX2_TX_INT_NUM (BNX2_TX_VEC << BNX2_PCICFG_INT_ACK_CMD_INT_NUM_SHIFT) | ||
6532 | 6535 | ||
6533 | struct bnx2_irq { | 6536 | struct bnx2_irq { |
6534 | irq_handler_t handler; | 6537 | irq_handler_t handler; |
@@ -6541,6 +6544,7 @@ struct bnx2_napi { | |||
6541 | struct napi_struct napi ____cacheline_aligned; | 6544 | struct napi_struct napi ____cacheline_aligned; |
6542 | struct bnx2 *bp; | 6545 | struct bnx2 *bp; |
6543 | struct status_block *status_blk; | 6546 | struct status_block *status_blk; |
6547 | struct status_block_msix *status_blk_msix; | ||
6544 | u32 last_status_idx; | 6548 | u32 last_status_idx; |
6545 | u32 int_num; | 6549 | u32 int_num; |
6546 | 6550 | ||
@@ -6583,6 +6587,7 @@ struct bnx2 { | |||
6583 | 6587 | ||
6584 | u32 tx_prod_bseq __attribute__((aligned(L1_CACHE_BYTES))); | 6588 | u32 tx_prod_bseq __attribute__((aligned(L1_CACHE_BYTES))); |
6585 | u16 tx_prod; | 6589 | u16 tx_prod; |
6590 | u8 tx_vec; | ||
6586 | u32 tx_bidx_addr; | 6591 | u32 tx_bidx_addr; |
6587 | u32 tx_bseq_addr; | 6592 | u32 tx_bseq_addr; |
6588 | 6593 | ||