diff options
author | Yuval Mintz <Yuval.Mintz@qlogic.com> | 2014-03-23 12:12:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-25 21:07:03 -0400 |
commit | 42f8277f56cf4a9570b1f0fe10a4fec3f48c832a (patch) | |
tree | b67d08a313491f4da5bf72e61fbe3c47dc063ec2 /drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | |
parent | 869f273911dd37ed9086d6ab25ef832d10813ccd (diff) |
bnx2x: Support mng. request for driver version
This adds support in a new management feature which needs the driver versions
(bnx2x, bnx2fc and bnx2i) loaded for each interface.
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h index 722160940ab9..f33fab6abb95 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | |||
@@ -1413,6 +1413,7 @@ enum sp_rtnl_flag { | |||
1413 | BNX2X_SP_RTNL_RX_MODE, | 1413 | BNX2X_SP_RTNL_RX_MODE, |
1414 | BNX2X_SP_RTNL_HYPERVISOR_VLAN, | 1414 | BNX2X_SP_RTNL_HYPERVISOR_VLAN, |
1415 | BNX2X_SP_RTNL_TX_STOP, | 1415 | BNX2X_SP_RTNL_TX_STOP, |
1416 | BNX2X_SP_RTNL_GET_DRV_VERSION, | ||
1416 | }; | 1417 | }; |
1417 | 1418 | ||
1418 | struct bnx2x_prev_path_list { | 1419 | struct bnx2x_prev_path_list { |
@@ -1703,6 +1704,10 @@ struct bnx2x { | |||
1703 | struct bnx2x_slowpath *slowpath; | 1704 | struct bnx2x_slowpath *slowpath; |
1704 | dma_addr_t slowpath_mapping; | 1705 | dma_addr_t slowpath_mapping; |
1705 | 1706 | ||
1707 | /* Mechanism protecting the drv_info_to_mcp */ | ||
1708 | struct mutex drv_info_mutex; | ||
1709 | bool drv_info_mng_owner; | ||
1710 | |||
1706 | /* Total number of FW statistics requests */ | 1711 | /* Total number of FW statistics requests */ |
1707 | u8 fw_stats_num; | 1712 | u8 fw_stats_num; |
1708 | 1713 | ||
@@ -2535,6 +2540,8 @@ enum { | |||
2535 | 2540 | ||
2536 | void bnx2x_set_local_cmng(struct bnx2x *bp); | 2541 | void bnx2x_set_local_cmng(struct bnx2x *bp); |
2537 | 2542 | ||
2543 | void bnx2x_update_mng_version(struct bnx2x *bp); | ||
2544 | |||
2538 | #define MCPR_SCRATCH_BASE(bp) \ | 2545 | #define MCPR_SCRATCH_BASE(bp) \ |
2539 | (CHIP_IS_E1x(bp) ? MCP_REG_MCPR_SCRATCH : MCP_A_REG_MCPR_SCRATCH) | 2546 | (CHIP_IS_E1x(bp) ? MCP_REG_MCPR_SCRATCH : MCP_A_REG_MCPR_SCRATCH) |
2540 | 2547 | ||