diff options
author | Michael Chan <mchan@broadcom.com> | 2006-01-24 03:11:42 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-01-24 03:11:42 +0300 |
commit | 1122db717ab5443ca9043fc0d23c1e862cfb3a61 (patch) | |
tree | 360da4ec3f5a29c5d3a3aa1e1677072e3852f26d /drivers/net/bnx2.h | |
parent | 1269a8a64a37c8a06af672f4cff4fed16a478734 (diff) | |
download | linux-1122db717ab5443ca9043fc0d23c1e862cfb3a61.tar.xz |
[BNX2]: Fix nvram sizing
Add code to correctly determine nvram size.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.h')
-rw-r--r-- | drivers/net/bnx2.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h index ea70bbcd2542..ae17b63b98b4 100644 --- a/drivers/net/bnx2.h +++ b/drivers/net/bnx2.h @@ -4072,6 +4072,7 @@ struct bnx2 { struct net_device_stats net_stats; struct flash_spec *flash_info; + u32 flash_size; }; static u32 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset); @@ -4273,6 +4274,9 @@ struct fw_info { #define BNX2_SHARED_HW_CFG_LED_MODE_GPHY1 0x100 #define BNX2_SHARED_HW_CFG_LED_MODE_GPHY2 0x200 +#define BNX2_SHARED_HW_CFG_CONFIG2 0x00000040 +#define BNX2_SHARED_HW_CFG2_NVM_SIZE_MASK 0x00fff000 + #define BNX2_DEV_INFO_BC_REV 0x0000004c #define BNX2_PORT_HW_CFG_MAC_UPPER 0x00000050 |