aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2007-12-12 14:16:19 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:57:27 -0500
commite343d55c0a624c5bb88cd6821a17586474f20271 (patch)
treeaf9efb9725694bd9d7b8d0b5e88ddf6a7c74e5ad /drivers/net/bnx2.h
parentf5f97b57b5208a7ca270ac86887a2838ab7862f5 (diff)
[BNX2]: Add ring constants.
Define the various ring constants to make the code cleaner. 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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index 30ba366608b0..e6a2153e8b95 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -6408,6 +6408,11 @@ struct sw_bd {
6408 DECLARE_PCI_UNMAP_ADDR(mapping) 6408 DECLARE_PCI_UNMAP_ADDR(mapping)
6409}; 6409};
6410 6410
6411#define SW_RXBD_RING_SIZE (sizeof(struct sw_bd) * RX_DESC_CNT)
6412#define RXBD_RING_SIZE (sizeof(struct rx_bd) * RX_DESC_CNT)
6413#define SW_TXBD_RING_SIZE (sizeof(struct sw_bd) * TX_DESC_CNT)
6414#define TXBD_RING_SIZE (sizeof(struct tx_bd) * TX_DESC_CNT)
6415
6411/* Buffered flash (Atmel: AT45DB011B) specific information */ 6416/* Buffered flash (Atmel: AT45DB011B) specific information */
6412#define SEEPROM_PAGE_BITS 2 6417#define SEEPROM_PAGE_BITS 2
6413#define SEEPROM_PHY_PAGE_SIZE (1 << SEEPROM_PAGE_BITS) 6418#define SEEPROM_PHY_PAGE_SIZE (1 << SEEPROM_PAGE_BITS)