diff options
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r-- | drivers/net/tg3.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h index 45605f2f7b54..169a6cebf9f1 100644 --- a/drivers/net/tg3.h +++ b/drivers/net/tg3.h | |||
@@ -1827,6 +1827,38 @@ | |||
1827 | #define FLASH_5717VENDOR_ATMEL_45USPT 0x03400000 | 1827 | #define FLASH_5717VENDOR_ATMEL_45USPT 0x03400000 |
1828 | #define FLASH_5717VENDOR_ST_25USPT 0x03400002 | 1828 | #define FLASH_5717VENDOR_ST_25USPT 0x03400002 |
1829 | #define FLASH_5717VENDOR_ST_45USPT 0x03400001 | 1829 | #define FLASH_5717VENDOR_ST_45USPT 0x03400001 |
1830 | #define FLASH_5720_EEPROM_HD 0x00000001 | ||
1831 | #define FLASH_5720_EEPROM_LD 0x00000003 | ||
1832 | #define FLASH_5720VENDOR_M_ATMEL_DB011D 0x01000000 | ||
1833 | #define FLASH_5720VENDOR_M_ATMEL_DB021D 0x01000002 | ||
1834 | #define FLASH_5720VENDOR_M_ATMEL_DB041D 0x01000001 | ||
1835 | #define FLASH_5720VENDOR_M_ATMEL_DB081D 0x01000003 | ||
1836 | #define FLASH_5720VENDOR_M_ST_M25PE10 0x02000000 | ||
1837 | #define FLASH_5720VENDOR_M_ST_M25PE20 0x02000002 | ||
1838 | #define FLASH_5720VENDOR_M_ST_M25PE40 0x02000001 | ||
1839 | #define FLASH_5720VENDOR_M_ST_M25PE80 0x02000003 | ||
1840 | #define FLASH_5720VENDOR_M_ST_M45PE10 0x03000000 | ||
1841 | #define FLASH_5720VENDOR_M_ST_M45PE20 0x03000002 | ||
1842 | #define FLASH_5720VENDOR_M_ST_M45PE40 0x03000001 | ||
1843 | #define FLASH_5720VENDOR_M_ST_M45PE80 0x03000003 | ||
1844 | #define FLASH_5720VENDOR_A_ATMEL_DB011B 0x01800000 | ||
1845 | #define FLASH_5720VENDOR_A_ATMEL_DB021B 0x01800002 | ||
1846 | #define FLASH_5720VENDOR_A_ATMEL_DB041B 0x01800001 | ||
1847 | #define FLASH_5720VENDOR_A_ATMEL_DB011D 0x01c00000 | ||
1848 | #define FLASH_5720VENDOR_A_ATMEL_DB021D 0x01c00002 | ||
1849 | #define FLASH_5720VENDOR_A_ATMEL_DB041D 0x01c00001 | ||
1850 | #define FLASH_5720VENDOR_A_ATMEL_DB081D 0x01c00003 | ||
1851 | #define FLASH_5720VENDOR_A_ST_M25PE10 0x02800000 | ||
1852 | #define FLASH_5720VENDOR_A_ST_M25PE20 0x02800002 | ||
1853 | #define FLASH_5720VENDOR_A_ST_M25PE40 0x02800001 | ||
1854 | #define FLASH_5720VENDOR_A_ST_M25PE80 0x02800003 | ||
1855 | #define FLASH_5720VENDOR_A_ST_M45PE10 0x02c00000 | ||
1856 | #define FLASH_5720VENDOR_A_ST_M45PE20 0x02c00002 | ||
1857 | #define FLASH_5720VENDOR_A_ST_M45PE40 0x02c00001 | ||
1858 | #define FLASH_5720VENDOR_A_ST_M45PE80 0x02c00003 | ||
1859 | #define FLASH_5720VENDOR_ATMEL_45USPT 0x03c00000 | ||
1860 | #define FLASH_5720VENDOR_ST_25USPT 0x03c00002 | ||
1861 | #define FLASH_5720VENDOR_ST_45USPT 0x03c00001 | ||
1830 | #define NVRAM_CFG1_5752PAGE_SIZE_MASK 0x70000000 | 1862 | #define NVRAM_CFG1_5752PAGE_SIZE_MASK 0x70000000 |
1831 | #define FLASH_5752PAGE_SIZE_256 0x00000000 | 1863 | #define FLASH_5752PAGE_SIZE_256 0x00000000 |
1832 | #define FLASH_5752PAGE_SIZE_512 0x10000000 | 1864 | #define FLASH_5752PAGE_SIZE_512 0x10000000 |
@@ -3060,6 +3092,7 @@ struct tg3 { | |||
3060 | 3092 | ||
3061 | int nvram_lock_cnt; | 3093 | int nvram_lock_cnt; |
3062 | u32 nvram_size; | 3094 | u32 nvram_size; |
3095 | #define TG3_NVRAM_SIZE_2KB 0x00000800 | ||
3063 | #define TG3_NVRAM_SIZE_64KB 0x00010000 | 3096 | #define TG3_NVRAM_SIZE_64KB 0x00010000 |
3064 | #define TG3_NVRAM_SIZE_128KB 0x00020000 | 3097 | #define TG3_NVRAM_SIZE_128KB 0x00020000 |
3065 | #define TG3_NVRAM_SIZE_256KB 0x00040000 | 3098 | #define TG3_NVRAM_SIZE_256KB 0x00040000 |
@@ -3075,6 +3108,9 @@ struct tg3 { | |||
3075 | #define JEDEC_SAIFUN 0x4f | 3108 | #define JEDEC_SAIFUN 0x4f |
3076 | #define JEDEC_SST 0xbf | 3109 | #define JEDEC_SST 0xbf |
3077 | 3110 | ||
3111 | #define ATMEL_AT24C02_CHIP_SIZE TG3_NVRAM_SIZE_2KB | ||
3112 | #define ATMEL_AT24C02_PAGE_SIZE (8) | ||
3113 | |||
3078 | #define ATMEL_AT24C64_CHIP_SIZE TG3_NVRAM_SIZE_64KB | 3114 | #define ATMEL_AT24C64_CHIP_SIZE TG3_NVRAM_SIZE_64KB |
3079 | #define ATMEL_AT24C64_PAGE_SIZE (32) | 3115 | #define ATMEL_AT24C64_PAGE_SIZE (32) |
3080 | 3116 | ||