aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
diff options
context:
space:
mode:
authorYuval Mintz <yuvalmin@broadcom.com>2012-12-01 23:05:50 -0500
committerDavid S. Miller <davem@davemloft.net>2012-12-02 20:22:59 -0500
commit7964211d3891d0271c5fc8087cd49c018b30476d (patch)
tree5ad794185d65be12b12e2a28b2229901dea0e8d6 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
parent59694f0087b6a31893719eb396be8698735b66d3 (diff)
bnx2x: nvram enables dropless flow control
It is now possible to enable dropless flow control via nvram. Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h')
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
index 9a51d4970ad5..3369a50ac6b4 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
@@ -500,7 +500,15 @@ struct port_hw_cfg { /* port 0: 0x12c port 1: 0x2bc */
500 u32 e3_cmn_pin_cfg1; /* 0x170 */ 500 u32 e3_cmn_pin_cfg1; /* 0x170 */
501 #define PORT_HW_CFG_E3_OVER_CURRENT_MASK 0x000000FF 501 #define PORT_HW_CFG_E3_OVER_CURRENT_MASK 0x000000FF
502 #define PORT_HW_CFG_E3_OVER_CURRENT_SHIFT 0 502 #define PORT_HW_CFG_E3_OVER_CURRENT_SHIFT 0
503 u32 reserved0[7]; /* 0x174 */ 503
504 /* pause on host ring */
505 u32 generic_features; /* 0x174 */
506 #define PORT_HW_CFG_PAUSE_ON_HOST_RING_MASK 0x00000001
507 #define PORT_HW_CFG_PAUSE_ON_HOST_RING_SHIFT 0
508 #define PORT_HW_CFG_PAUSE_ON_HOST_RING_DISABLED 0x00000000
509 #define PORT_HW_CFG_PAUSE_ON_HOST_RING_ENABLED 0x00000001
510
511 u32 reserved0[6]; /* 0x178 */
504 512
505 u32 aeu_int_mask; /* 0x190 */ 513 u32 aeu_int_mask; /* 0x190 */
506 514
@@ -1518,12 +1526,13 @@ enum mf_cfg_afex_vlan_mode {
1518/* This structure is not applicable and should not be accessed on 57711 */ 1526/* This structure is not applicable and should not be accessed on 57711 */
1519struct func_ext_cfg { 1527struct func_ext_cfg {
1520 u32 func_cfg; 1528 u32 func_cfg;
1521 #define MACP_FUNC_CFG_FLAGS_MASK 0x000000FF 1529 #define MACP_FUNC_CFG_FLAGS_MASK 0x0000007F
1522 #define MACP_FUNC_CFG_FLAGS_SHIFT 0 1530 #define MACP_FUNC_CFG_FLAGS_SHIFT 0
1523 #define MACP_FUNC_CFG_FLAGS_ENABLED 0x00000001 1531 #define MACP_FUNC_CFG_FLAGS_ENABLED 0x00000001
1524 #define MACP_FUNC_CFG_FLAGS_ETHERNET 0x00000002 1532 #define MACP_FUNC_CFG_FLAGS_ETHERNET 0x00000002
1525 #define MACP_FUNC_CFG_FLAGS_ISCSI_OFFLOAD 0x00000004 1533 #define MACP_FUNC_CFG_FLAGS_ISCSI_OFFLOAD 0x00000004
1526 #define MACP_FUNC_CFG_FLAGS_FCOE_OFFLOAD 0x00000008 1534 #define MACP_FUNC_CFG_FLAGS_FCOE_OFFLOAD 0x00000008
1535 #define MACP_FUNC_CFG_PAUSE_ON_HOST_RING 0x00000080
1527 1536
1528 u32 iscsi_mac_addr_upper; 1537 u32 iscsi_mac_addr_upper;
1529 u32 iscsi_mac_addr_lower; 1538 u32 iscsi_mac_addr_lower;