diff options
-rw-r--r-- | drivers/net/tg3.c | 6 | ||||
-rw-r--r-- | drivers/net/tg3.h | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 051b18ad3f0c..f08e4b846458 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -12753,6 +12753,12 @@ static void __devinit tg3_read_sb_ver(struct tg3 *tp, u32 val) | |||
12753 | case TG3_EEPROM_SB_REVISION_3: | 12753 | case TG3_EEPROM_SB_REVISION_3: |
12754 | offset = TG3_EEPROM_SB_F1R3_EDH_OFF; | 12754 | offset = TG3_EEPROM_SB_F1R3_EDH_OFF; |
12755 | break; | 12755 | break; |
12756 | case TG3_EEPROM_SB_REVISION_4: | ||
12757 | offset = TG3_EEPROM_SB_F1R4_EDH_OFF; | ||
12758 | break; | ||
12759 | case TG3_EEPROM_SB_REVISION_5: | ||
12760 | offset = TG3_EEPROM_SB_F1R5_EDH_OFF; | ||
12761 | break; | ||
12756 | default: | 12762 | default: |
12757 | return; | 12763 | return; |
12758 | } | 12764 | } |
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h index b4fd59623cfb..ffc12b1cb388 100644 --- a/drivers/net/tg3.h +++ b/drivers/net/tg3.h | |||
@@ -1864,6 +1864,8 @@ | |||
1864 | #define TG3_EEPROM_SB_REVISION_0 0x00000000 | 1864 | #define TG3_EEPROM_SB_REVISION_0 0x00000000 |
1865 | #define TG3_EEPROM_SB_REVISION_2 0x00020000 | 1865 | #define TG3_EEPROM_SB_REVISION_2 0x00020000 |
1866 | #define TG3_EEPROM_SB_REVISION_3 0x00030000 | 1866 | #define TG3_EEPROM_SB_REVISION_3 0x00030000 |
1867 | #define TG3_EEPROM_SB_REVISION_4 0x00040000 | ||
1868 | #define TG3_EEPROM_SB_REVISION_5 0x00050000 | ||
1867 | #define TG3_EEPROM_MAGIC_HW 0xabcd | 1869 | #define TG3_EEPROM_MAGIC_HW 0xabcd |
1868 | #define TG3_EEPROM_MAGIC_HW_MSK 0xffff | 1870 | #define TG3_EEPROM_MAGIC_HW_MSK 0xffff |
1869 | 1871 | ||
@@ -1881,6 +1883,8 @@ | |||
1881 | #define TG3_EEPROM_SB_F1R2_EDH_OFF 0x14 | 1883 | #define TG3_EEPROM_SB_F1R2_EDH_OFF 0x14 |
1882 | #define TG3_EEPROM_SB_F1R2_MBA_OFF 0x10 | 1884 | #define TG3_EEPROM_SB_F1R2_MBA_OFF 0x10 |
1883 | #define TG3_EEPROM_SB_F1R3_EDH_OFF 0x18 | 1885 | #define TG3_EEPROM_SB_F1R3_EDH_OFF 0x18 |
1886 | #define TG3_EEPROM_SB_F1R4_EDH_OFF 0x1c | ||
1887 | #define TG3_EEPROM_SB_F1R5_EDH_OFF 0x20 | ||
1884 | #define TG3_EEPROM_SB_EDH_MAJ_MASK 0x00000700 | 1888 | #define TG3_EEPROM_SB_EDH_MAJ_MASK 0x00000700 |
1885 | #define TG3_EEPROM_SB_EDH_MAJ_SHFT 8 | 1889 | #define TG3_EEPROM_SB_EDH_MAJ_SHFT 8 |
1886 | #define TG3_EEPROM_SB_EDH_MIN_MASK 0x000000ff | 1890 | #define TG3_EEPROM_SB_EDH_MIN_MASK 0x000000ff |