diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2007-10-21 19:16:08 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-22 05:59:50 -0400 |
commit | 9c8a620e7f85fff050a54697da44bbd1a66e8e0b (patch) | |
tree | 340bf6ddc4f38fcb2aea3bad90b3fd4a6cd13ba8 /drivers/net/tg3.h | |
parent | 6c7af27c8a2e8b85cb235a2409d3b2093b18f77d (diff) |
[TG3]: Add management FW version to ethtool report
This patch appends the management firmware version to the bootcode
firmware string reported through ethtool.
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 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h index 6dbdad2b8f88..495a1dfaba5a 100644 --- a/drivers/net/tg3.h +++ b/drivers/net/tg3.h | |||
@@ -1540,6 +1540,12 @@ | |||
1540 | #define TG3_EEPROM_MAGIC_HW 0xabcd | 1540 | #define TG3_EEPROM_MAGIC_HW 0xabcd |
1541 | #define TG3_EEPROM_MAGIC_HW_MSK 0xffff | 1541 | #define TG3_EEPROM_MAGIC_HW_MSK 0xffff |
1542 | 1542 | ||
1543 | #define TG3_NVM_DIR_START 0x18 | ||
1544 | #define TG3_NVM_DIR_END 0x78 | ||
1545 | #define TG3_NVM_DIRENT_SIZE 0xc | ||
1546 | #define TG3_NVM_DIRTYPE_SHIFT 24 | ||
1547 | #define TG3_NVM_DIRTYPE_ASFINI 1 | ||
1548 | |||
1543 | /* 32K Window into NIC internal memory */ | 1549 | /* 32K Window into NIC internal memory */ |
1544 | #define NIC_SRAM_WIN_BASE 0x00008000 | 1550 | #define NIC_SRAM_WIN_BASE 0x00008000 |
1545 | 1551 | ||
@@ -2418,7 +2424,8 @@ struct tg3 { | |||
2418 | u32 pci_cmd; | 2424 | u32 pci_cmd; |
2419 | 2425 | ||
2420 | char board_part_number[24]; | 2426 | char board_part_number[24]; |
2421 | char fw_ver[16]; | 2427 | #define TG3_VER_SIZE 32 |
2428 | char fw_ver[TG3_VER_SIZE]; | ||
2422 | u32 nic_sram_data_cfg; | 2429 | u32 nic_sram_data_cfg; |
2423 | u32 pci_clock_ctrl; | 2430 | u32 pci_clock_ctrl; |
2424 | struct pci_dev *pdev_peer; | 2431 | struct pci_dev *pdev_peer; |