aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.h
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2010-09-30 06:34:36 -0400
committerDavid S. Miller <davem@davemloft.net>2010-10-01 03:24:44 -0400
commit7cb32cf23c63a371cf89bfaad3f911a1609241cc (patch)
tree2fd3bd526e8b25f03f4d87a0e7c4baea45acf473 /drivers/net/tg3.h
parent2c49a44df33e22e1f48bd8d51781e7f38d55d002 (diff)
tg3: Add extend rx ring sizes for 5717 and 5719
This patch increases the rx ring sizes for those asic revs that support them. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r--drivers/net/tg3.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h
index 9763298c22c6..f6b709a3ca32 100644
--- a/drivers/net/tg3.h
+++ b/drivers/net/tg3.h
@@ -26,6 +26,7 @@
26#define TG3_RX_INTERNAL_RING_SZ_5906 32 26#define TG3_RX_INTERNAL_RING_SZ_5906 32
27 27
28#define RX_STD_MAX_SIZE_5705 512 28#define RX_STD_MAX_SIZE_5705 512
29#define RX_STD_MAX_SIZE_5717 2048
29#define RX_JUMBO_MAX_SIZE 0xdeadbeef /* XXX */ 30#define RX_JUMBO_MAX_SIZE 0xdeadbeef /* XXX */
30 31
31/* First 256 bytes are a mirror of PCI config space. */ 32/* First 256 bytes are a mirror of PCI config space. */
@@ -972,6 +973,7 @@
972#define RCVDBDI_MODE_JUMBOBD_NEEDED 0x00000004 973#define RCVDBDI_MODE_JUMBOBD_NEEDED 0x00000004
973#define RCVDBDI_MODE_FRM_TOO_BIG 0x00000008 974#define RCVDBDI_MODE_FRM_TOO_BIG 0x00000008
974#define RCVDBDI_MODE_INV_RING_SZ 0x00000010 975#define RCVDBDI_MODE_INV_RING_SZ 0x00000010
976#define RCVDBDI_MODE_LRG_RING_SZ 0x00010000
975#define RCVDBDI_STATUS 0x00002404 977#define RCVDBDI_STATUS 0x00002404
976#define RCVDBDI_STATUS_JUMBOBD_NEEDED 0x00000004 978#define RCVDBDI_STATUS_JUMBOBD_NEEDED 0x00000004
977#define RCVDBDI_STATUS_FRM_TOO_BIG 0x00000008 979#define RCVDBDI_STATUS_FRM_TOO_BIG 0x00000008
@@ -2764,6 +2766,7 @@ struct tg3 {
2764 u32 rx_copy_thresh; 2766 u32 rx_copy_thresh;
2765 u32 rx_std_ring_mask; 2767 u32 rx_std_ring_mask;
2766 u32 rx_jmb_ring_mask; 2768 u32 rx_jmb_ring_mask;
2769 u32 rx_ret_ring_mask;
2767 u32 rx_pending; 2770 u32 rx_pending;
2768 u32 rx_jumbo_pending; 2771 u32 rx_jumbo_pending;
2769 u32 rx_std_max_post; 2772 u32 rx_std_max_post;