aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h
diff options
context:
space:
mode:
authorAriel Elior <ariele@broadcom.com>2012-01-26 01:01:50 -0500
committerDavid S. Miller <davem@davemloft.net>2012-01-26 13:39:52 -0500
commitf16da43b5df947cef427f19b8f5c4b2f5d566231 (patch)
treea9076701c918b56a4daedc4e7bd6336101f4cdf8 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h
parentd1e2d9660e6bca2f06606b4bc65ea669bf669b0a (diff)
bnx2x: Lock PF-common resources
Use hardware locks to protect resources common to several Physical Functions. In a virtualized environment the RTNL lock only protects a PF's driver against the PFs sharing it's VMs with regard to device resources. Other PFs may reside in other VMs under other OSs, and are not subject to the lock. Such resources which were previously protected implicitly by the RTNL lock must now be protected explicitly with dedicated HW locks. Signed-off-by: Ariel Elior <ariele@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_reg.h')
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h
index 8c79e00b37e8..8ade7bd9a717 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h
@@ -5731,6 +5731,7 @@
5731#define MISC_REGISTERS_GPIO_PORT_SHIFT 4 5731#define MISC_REGISTERS_GPIO_PORT_SHIFT 4
5732#define MISC_REGISTERS_GPIO_SET_POS 8 5732#define MISC_REGISTERS_GPIO_SET_POS 8
5733#define MISC_REGISTERS_RESET_REG_1_CLEAR 0x588 5733#define MISC_REGISTERS_RESET_REG_1_CLEAR 0x588
5734#define MISC_REGISTERS_RESET_REG_1_RST_DORQ (0x1<<19)
5734#define MISC_REGISTERS_RESET_REG_1_RST_HC (0x1<<29) 5735#define MISC_REGISTERS_RESET_REG_1_RST_HC (0x1<<29)
5735#define MISC_REGISTERS_RESET_REG_1_RST_NIG (0x1<<7) 5736#define MISC_REGISTERS_RESET_REG_1_RST_NIG (0x1<<7)
5736#define MISC_REGISTERS_RESET_REG_1_RST_PXP (0x1<<26) 5737#define MISC_REGISTERS_RESET_REG_1_RST_PXP (0x1<<26)
@@ -5783,15 +5784,17 @@
5783#define MISC_REGISTERS_SPIO_OUTPUT_HIGH 1 5784#define MISC_REGISTERS_SPIO_OUTPUT_HIGH 1
5784#define MISC_REGISTERS_SPIO_OUTPUT_LOW 0 5785#define MISC_REGISTERS_SPIO_OUTPUT_LOW 0
5785#define MISC_REGISTERS_SPIO_SET_POS 8 5786#define MISC_REGISTERS_SPIO_SET_POS 8
5786#define HW_LOCK_DRV_FLAGS 10
5787#define HW_LOCK_MAX_RESOURCE_VALUE 31 5787#define HW_LOCK_MAX_RESOURCE_VALUE 31
5788#define HW_LOCK_RESOURCE_DRV_FLAGS 10
5788#define HW_LOCK_RESOURCE_GPIO 1 5789#define HW_LOCK_RESOURCE_GPIO 1
5789#define HW_LOCK_RESOURCE_MDIO 0 5790#define HW_LOCK_RESOURCE_MDIO 0
5791#define HW_LOCK_RESOURCE_NVRAM 12
5790#define HW_LOCK_RESOURCE_PORT0_ATT_MASK 3 5792#define HW_LOCK_RESOURCE_PORT0_ATT_MASK 3
5791#define HW_LOCK_RESOURCE_RECOVERY_LEADER_0 8 5793#define HW_LOCK_RESOURCE_RECOVERY_LEADER_0 8
5792#define HW_LOCK_RESOURCE_RECOVERY_LEADER_1 9 5794#define HW_LOCK_RESOURCE_RECOVERY_LEADER_1 9
5793#define HW_LOCK_RESOURCE_SPIO 2 5795#define HW_LOCK_RESOURCE_RECOVERY_REG 11
5794#define HW_LOCK_RESOURCE_RESET 5 5796#define HW_LOCK_RESOURCE_RESET 5
5797#define HW_LOCK_RESOURCE_SPIO 2
5795#define AEU_INPUTS_ATTN_BITS_ATC_HW_INTERRUPT (0x1<<4) 5798#define AEU_INPUTS_ATTN_BITS_ATC_HW_INTERRUPT (0x1<<4)
5796#define AEU_INPUTS_ATTN_BITS_ATC_PARITY_ERROR (0x1<<5) 5799#define AEU_INPUTS_ATTN_BITS_ATC_PARITY_ERROR (0x1<<5)
5797#define AEU_INPUTS_ATTN_BITS_BRB_PARITY_ERROR (0x1<<18) 5800#define AEU_INPUTS_ATTN_BITS_BRB_PARITY_ERROR (0x1<<18)