summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/qlogic/qed/qed_reg_addr.h
diff options
context:
space:
mode:
authorAriel Elior <Ariel.Elior@qlogic.com>2015-12-07 06:25:58 -0500
committerDavid S. Miller <davem@davemloft.net>2015-12-07 14:14:04 -0500
commitc78df14ee0f6bc5e8741b4324b600b7277abb13e (patch)
tree73826c3d3d2b83876e78a6345fd9ecf4f4481e34 /drivers/net/ethernet/qlogic/qed/qed_reg_addr.h
parent76a9a3642a0b72d5687d680150580d55b6ea9804 (diff)
qed: Fix BAR size split for some servers
Can't rely on pci config space to discover bar size, as in some environments this returns a wrong, too large value. Instead, rely on device register, which contains the value provided by MFW at preboot. Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com> Signed-off-by: Manish Chopra <manish.chopra@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_reg_addr.h')
-rw-r--r--drivers/net/ethernet/qlogic/qed/qed_reg_addr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_reg_addr.h b/drivers/net/ethernet/qlogic/qed/qed_reg_addr.h
index 7a5ce5914ace..e8df12335a97 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_reg_addr.h
+++ b/drivers/net/ethernet/qlogic/qed/qed_reg_addr.h
@@ -363,4 +363,8 @@
0x7 << 0)
#define MCP_REG_NVM_CFG4_FLASH_SIZE_SHIFT \
0
+#define PGLUE_B_REG_PF_BAR0_SIZE \
+ 0x2aae60UL
+#define PGLUE_B_REG_PF_BAR1_SIZE \
+ 0x2aae64UL
#endif