diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2008-11-21 20:19:41 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-21 20:19:41 -0500 |
commit | dfe00d7d890134f9cafda49e3e60e6ce27af91ed (patch) | |
tree | dc46d1b8a8896763787a29eb0025ba1fe7a6ec39 /drivers/net/tg3.h | |
parent | 6833c043f9fc03696fde623914c4a0277df2a0bc (diff) |
tg3: Extract FW ver from alt NVRAM formats
This patch extracts the bootcode firmware version from the alternate
selfboot patch NVRAM format. This format is used on the 5784, 5761 and
some newer devices.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r-- | drivers/net/tg3.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h index eba62e2074ca..42f60ef4fa39 100644 --- a/drivers/net/tg3.h +++ b/drivers/net/tg3.h | |||
@@ -1747,6 +1747,17 @@ | |||
1747 | #define TG3_NVM_DIRTYPE_SHIFT 24 | 1747 | #define TG3_NVM_DIRTYPE_SHIFT 24 |
1748 | #define TG3_NVM_DIRTYPE_ASFINI 1 | 1748 | #define TG3_NVM_DIRTYPE_ASFINI 1 |
1749 | 1749 | ||
1750 | #define TG3_EEPROM_SB_F1R0_EDH_OFF 0x10 | ||
1751 | #define TG3_EEPROM_SB_F1R2_EDH_OFF 0x14 | ||
1752 | #define TG3_EEPROM_SB_F1R2_MBA_OFF 0x10 | ||
1753 | #define TG3_EEPROM_SB_F1R3_EDH_OFF 0x18 | ||
1754 | #define TG3_EEPROM_SB_EDH_MAJ_MASK 0x00000700 | ||
1755 | #define TG3_EEPROM_SB_EDH_MAJ_SHFT 8 | ||
1756 | #define TG3_EEPROM_SB_EDH_MIN_MASK 0x000000ff | ||
1757 | #define TG3_EEPROM_SB_EDH_BLD_MASK 0x0000f800 | ||
1758 | #define TG3_EEPROM_SB_EDH_BLD_SHFT 11 | ||
1759 | |||
1760 | |||
1750 | /* 32K Window into NIC internal memory */ | 1761 | /* 32K Window into NIC internal memory */ |
1751 | #define NIC_SRAM_WIN_BASE 0x00008000 | 1762 | #define NIC_SRAM_WIN_BASE 0x00008000 |
1752 | 1763 | ||