aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h
diff options
context:
space:
mode:
authorAriel Elior <ariele@broadcom.com>2013-01-01 00:22:26 -0500
committerDavid S. Miller <davem@davemloft.net>2013-01-02 04:45:05 -0500
commitad5afc89365e981cffafc241a4c46f56ca943370 (patch)
treeda166146726432ac08804371b0c97832b632c035 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h
parent4513f92576856c552212fb9608aca56b88022454 (diff)
bnx2x: Separate VF and PF logic
Generally, the VF driver cannot access the chip, except by the narrow window its BAR allows. Care had to be taken so the VF driver will not reach code which accesses the chip elsewhere. Refactor the nic_load flow into parts so it would be easier to separate the VF-only logic from the PF-only logic. 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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h
index c302de43fb07..3f01526dec2a 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h
@@ -6559,6 +6559,12 @@
6559#define PXP_VF_ADDR_IGU_END\ 6559#define PXP_VF_ADDR_IGU_END\
6560 ((PXP_VF_ADDR_IGU_START) + (PXP_VF_ADDR_IGU_SIZE) - 1) 6560 ((PXP_VF_ADDR_IGU_START) + (PXP_VF_ADDR_IGU_SIZE) - 1)
6561 6561
6562#define PXP_VF_ADDR_USDM_QUEUES_START 0x3000
6563#define PXP_VF_ADDR_USDM_QUEUES_SIZE\
6564 (PXP_VF_ADRR_NUM_QUEUES * PXP_ADDR_QUEUE_SIZE)
6565#define PXP_VF_ADDR_USDM_QUEUES_END\
6566 ((PXP_VF_ADDR_USDM_QUEUES_START) + (PXP_VF_ADDR_USDM_QUEUES_SIZE) - 1)
6567
6562#define PXP_VF_ADDR_CSDM_GLOBAL_START 0x7600 6568#define PXP_VF_ADDR_CSDM_GLOBAL_START 0x7600
6563#define PXP_VF_ADDR_CSDM_GLOBAL_SIZE (PXP_ADDR_REG_SIZE) 6569#define PXP_VF_ADDR_CSDM_GLOBAL_SIZE (PXP_ADDR_REG_SIZE)
6564#define PXP_VF_ADDR_CSDM_GLOBAL_END\ 6570#define PXP_VF_ADDR_CSDM_GLOBAL_END\