aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x_fw_defs.h
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-02-12 03:38:32 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-16 02:31:58 -0500
commit356e23850b5ed4471470a918623021765fcaf125 (patch)
tree35de737e86c377773db50abf4a90a631541eb601 /drivers/net/bnx2x_fw_defs.h
parentf53722514242da8346cbed2223bcea9eed744ebd (diff)
bnx2x: Clean-up
Whitespaces, empty lines, 80 columns, indentations and removing redundant parenthesis 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.h54
1 files changed, 25 insertions, 29 deletions
diff --git a/drivers/net/bnx2x_fw_defs.h b/drivers/net/bnx2x_fw_defs.h
index 0683e542e942..05d695dea61c 100644
--- a/drivers/net/bnx2x_fw_defs.h
+++ b/drivers/net/bnx2x_fw_defs.h
@@ -217,14 +217,13 @@
217#define X_ETH_LOCAL_RING_SIZE 13 217#define X_ETH_LOCAL_RING_SIZE 13
218#define FIRST_BD_IN_PKT 0 218#define FIRST_BD_IN_PKT 0
219#define PARSE_BD_INDEX 1 219#define PARSE_BD_INDEX 1
220#define NUM_OF_ETH_BDS_IN_PAGE \ 220#define NUM_OF_ETH_BDS_IN_PAGE ((PAGE_SIZE)/(STRUCT_SIZE(eth_tx_bd)/8))
221 ((PAGE_SIZE) / (STRUCT_SIZE(eth_tx_bd)/8))
222 221
223 222
224/* Rx ring params */ 223/* Rx ring params */
225#define U_ETH_LOCAL_BD_RING_SIZE (16) 224#define U_ETH_LOCAL_BD_RING_SIZE 16
226#define U_ETH_LOCAL_SGE_RING_SIZE (12) 225#define U_ETH_LOCAL_SGE_RING_SIZE 12
227#define U_ETH_SGL_SIZE (8) 226#define U_ETH_SGL_SIZE 8
228 227
229 228
230#define U_ETH_BDS_PER_PAGE_MASK \ 229#define U_ETH_BDS_PER_PAGE_MASK \
@@ -246,15 +245,15 @@
246#define U_ETH_UNDEFINED_Q 0xFF 245#define U_ETH_UNDEFINED_Q 0xFF
247 246
248/* values of command IDs in the ramrod message */ 247/* values of command IDs in the ramrod message */
249#define RAMROD_CMD_ID_ETH_PORT_SETUP (80) 248#define RAMROD_CMD_ID_ETH_PORT_SETUP 80
250#define RAMROD_CMD_ID_ETH_CLIENT_SETUP (85) 249#define RAMROD_CMD_ID_ETH_CLIENT_SETUP 85
251#define RAMROD_CMD_ID_ETH_STAT_QUERY (90) 250#define RAMROD_CMD_ID_ETH_STAT_QUERY 90
252#define RAMROD_CMD_ID_ETH_UPDATE (100) 251#define RAMROD_CMD_ID_ETH_UPDATE 100
253#define RAMROD_CMD_ID_ETH_HALT (105) 252#define RAMROD_CMD_ID_ETH_HALT 105
254#define RAMROD_CMD_ID_ETH_SET_MAC (110) 253#define RAMROD_CMD_ID_ETH_SET_MAC 110
255#define RAMROD_CMD_ID_ETH_CFC_DEL (115) 254#define RAMROD_CMD_ID_ETH_CFC_DEL 115
256#define RAMROD_CMD_ID_ETH_PORT_DEL (120) 255#define RAMROD_CMD_ID_ETH_PORT_DEL 120
257#define RAMROD_CMD_ID_ETH_FORWARD_SETUP (125) 256#define RAMROD_CMD_ID_ETH_FORWARD_SETUP 125
258 257
259 258
260/* command values for set mac command */ 259/* command values for set mac command */
@@ -271,8 +270,8 @@
271#define ETH_MAX_RX_CLIENTS_E1H 25 270#define ETH_MAX_RX_CLIENTS_E1H 25
272 271
273/* Maximal aggregation queues supported */ 272/* Maximal aggregation queues supported */
274#define ETH_MAX_AGGREGATION_QUEUES_E1 (32) 273#define ETH_MAX_AGGREGATION_QUEUES_E1 32
275#define ETH_MAX_AGGREGATION_QUEUES_E1H (64) 274#define ETH_MAX_AGGREGATION_QUEUES_E1H 64
276 275
277/* ETH RSS modes */ 276/* ETH RSS modes */
278#define ETH_RSS_MODE_DISABLED 0 277#define ETH_RSS_MODE_DISABLED 0
@@ -301,7 +300,7 @@
301#define RDMA_STATE (RDMA_CONNECTION_TYPE << PROTOCOL_STATE_BIT_OFFSET) 300#define RDMA_STATE (RDMA_CONNECTION_TYPE << PROTOCOL_STATE_BIT_OFFSET)
302 301
303/* microcode fixed page page size 4K (chains and ring segments) */ 302/* microcode fixed page page size 4K (chains and ring segments) */
304#define MC_PAGE_SIZE (4096) 303#define MC_PAGE_SIZE 4096
305 304
306 305
307/* Host coalescing constants */ 306/* Host coalescing constants */
@@ -348,16 +347,16 @@
348#define ATTENTION_ID 4 347#define ATTENTION_ID 4
349 348
350/* max number of slow path commands per port */ 349/* max number of slow path commands per port */
351#define MAX_RAMRODS_PER_PORT (8) 350#define MAX_RAMRODS_PER_PORT 8
352 351
353/* values for RX ETH CQE type field */ 352/* values for RX ETH CQE type field */
354#define RX_ETH_CQE_TYPE_ETH_FASTPATH (0) 353#define RX_ETH_CQE_TYPE_ETH_FASTPATH 0
355#define RX_ETH_CQE_TYPE_ETH_RAMROD (1) 354#define RX_ETH_CQE_TYPE_ETH_RAMROD 1
356 355
357 356
358/**** DEFINES FOR TIMERS/CLOCKS RESOLUTIONS ****/ 357/**** DEFINES FOR TIMERS/CLOCKS RESOLUTIONS ****/
359#define EMULATION_FREQUENCY_FACTOR (1600) 358#define EMULATION_FREQUENCY_FACTOR 1600
360#define FPGA_FREQUENCY_FACTOR (100) 359#define FPGA_FREQUENCY_FACTOR 100
361 360
362#define TIMERS_TICK_SIZE_CHIP (1e-3) 361#define TIMERS_TICK_SIZE_CHIP (1e-3)
363#define TIMERS_TICK_SIZE_EMUL \ 362#define TIMERS_TICK_SIZE_EMUL \
@@ -371,12 +370,9 @@
371#define TSEMI_CLK1_RESUL_FPGA \ 370#define TSEMI_CLK1_RESUL_FPGA \
372 ((TSEMI_CLK1_RESUL_CHIP)/(FPGA_FREQUENCY_FACTOR)) 371 ((TSEMI_CLK1_RESUL_CHIP)/(FPGA_FREQUENCY_FACTOR))
373 372
374#define USEMI_CLK1_RESUL_CHIP \ 373#define USEMI_CLK1_RESUL_CHIP (TIMERS_TICK_SIZE_CHIP)
375 (TIMERS_TICK_SIZE_CHIP) 374#define USEMI_CLK1_RESUL_EMUL (TIMERS_TICK_SIZE_EMUL)
376#define USEMI_CLK1_RESUL_EMUL \ 375#define USEMI_CLK1_RESUL_FPGA (TIMERS_TICK_SIZE_FPGA)
377 (TIMERS_TICK_SIZE_EMUL)
378#define USEMI_CLK1_RESUL_FPGA \
379 (TIMERS_TICK_SIZE_FPGA)
380 376
381#define XSEMI_CLK1_RESUL_CHIP (1e-3) 377#define XSEMI_CLK1_RESUL_CHIP (1e-3)
382#define XSEMI_CLK1_RESUL_EMUL \ 378#define XSEMI_CLK1_RESUL_EMUL \
@@ -401,7 +397,7 @@
401#define XSTORM_IP_ID_ROLL_HALF 0x8000 397#define XSTORM_IP_ID_ROLL_HALF 0x8000
402#define XSTORM_IP_ID_ROLL_ALL 0 398#define XSTORM_IP_ID_ROLL_ALL 0
403 399
404#define FW_LOG_LIST_SIZE (50) 400#define FW_LOG_LIST_SIZE 50
405 401
406#define NUM_OF_PROTOCOLS 4 402#define NUM_OF_PROTOCOLS 4
407#define NUM_OF_SAFC_BITS 16 403#define NUM_OF_SAFC_BITS 16