aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x_fw_defs.h
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-02-12 03:36:43 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-16 02:31:15 -0500
commit1c06328c0345638ea7532b45cadfe713c9e9781e (patch)
treef0bc6c0986f22802655b347367ff5222074870dc /drivers/net/bnx2x_fw_defs.h
parent8a1c38d17d88c8df3dcbea1c01a390ab2087f8ad (diff)
bnx2x: Flow control enhancement
Setting better HW thresholds and enabling FW capabilities for better enforcement. Also set the HW to more efficiently use the internal buffers if this is a single port design Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_fw_defs.h')
-rw-r--r--drivers/net/bnx2x_fw_defs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/bnx2x_fw_defs.h b/drivers/net/bnx2x_fw_defs.h
index 59bb13262585..f6dacb03bdd6 100644
--- a/drivers/net/bnx2x_fw_defs.h
+++ b/drivers/net/bnx2x_fw_defs.h
@@ -107,6 +107,9 @@
107#define USTORM_DEF_SB_HOST_STATUS_BLOCK_OFFSET(function) \ 107#define USTORM_DEF_SB_HOST_STATUS_BLOCK_OFFSET(function) \
108 (IS_E1H_OFFSET ? (0x9508 + ((function>>1) * 0x40) + \ 108 (IS_E1H_OFFSET ? (0x9508 + ((function>>1) * 0x40) + \
109 ((function&1) * 0x100)) : (0x1908 + (function * 0x40))) 109 ((function&1) * 0x100)) : (0x1908 + (function * 0x40)))
110#define USTORM_ETH_RING_PAUSE_DATA_OFFSET(port, clientId) \
111 (IS_E1H_OFFSET ? (0x8020 + (port * 0x4b0) + (clientId * 0x30)) : \
112 0xffffffff)
110#define USTORM_ETH_STATS_QUERY_ADDR_OFFSET(function) \ 113#define USTORM_ETH_STATS_QUERY_ADDR_OFFSET(function) \
111 (IS_E1H_OFFSET ? (0x2a50 + (function * 0x8)) : (0x1d98 + \ 114 (IS_E1H_OFFSET ? (0x2a50 + (function * 0x8)) : (0x1d98 + \
112 (function * 0x8))) 115 (function * 0x8)))
@@ -120,6 +123,8 @@
120#define USTORM_MEM_WORKAROUND_ADDRESS_OFFSET(function) \ 123#define USTORM_MEM_WORKAROUND_ADDRESS_OFFSET(function) \
121 (IS_E1H_OFFSET ? (0x2408 + (function * 0x8)) : (0x5308 + \ 124 (IS_E1H_OFFSET ? (0x2408 + (function * 0x8)) : (0x5308 + \
122 (function * 0x8))) 125 (function * 0x8)))
126#define USTORM_PAUSE_ENABLED_OFFSET(port) \
127 (IS_E1H_OFFSET ? (0x2ad4 + (port * 0x8)) : 0xffffffff)
123#define USTORM_PER_COUNTER_ID_STATS_OFFSET(port, stats_counter_id) \ 128#define USTORM_PER_COUNTER_ID_STATS_OFFSET(port, stats_counter_id) \
124 (IS_E1H_OFFSET ? (0x2450 + (port * 0x2d0) + (stats_counter_id * \ 129 (IS_E1H_OFFSET ? (0x2450 + (port * 0x2d0) + (stats_counter_id * \
125 0x28)) : (0x4740 + (port * 0x2d0) + (stats_counter_id * 0x28))) 130 0x28)) : (0x4740 + (port * 0x2d0) + (stats_counter_id * 0x28)))