diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2009-06-02 07:29:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-03 05:46:34 -0400 |
commit | a4f58f5455ba0efda36fb33c37074922d1527a10 (patch) | |
tree | 98aa6d14824b7c1b7907e703abedd80219e0abda /drivers/net/e1000e/defines.h | |
parent | 2adc55c959940fc680074392eddbd5585a76f3d9 (diff) |
e1000e: add support for 82577/82578 GbE LOM parts
This patch provides support for the next generation Intel desktop
and mobile gigabit ethernet LOM adapters. These adapters are the
follow-on parts to the LOMs tied to the prior ICH chipsets and are
comprised of a MAC in the PCH chipset and an external PHY (82577 for
mobile and 82578 for desktop versions). New features consist of PHY
wakeup to save power by completely turning off the MAC while in Sx
state, and 4K jumbo frames.
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/e1000e/defines.h')
-rw-r--r-- | drivers/net/e1000e/defines.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/net/e1000e/defines.h b/drivers/net/e1000e/defines.h index 9acfecddb273..674a47e43034 100644 --- a/drivers/net/e1000e/defines.h +++ b/drivers/net/e1000e/defines.h | |||
@@ -56,6 +56,7 @@ | |||
56 | /* Wake Up Control */ | 56 | /* Wake Up Control */ |
57 | #define E1000_WUC_APME 0x00000001 /* APM Enable */ | 57 | #define E1000_WUC_APME 0x00000001 /* APM Enable */ |
58 | #define E1000_WUC_PME_EN 0x00000002 /* PME Enable */ | 58 | #define E1000_WUC_PME_EN 0x00000002 /* PME Enable */ |
59 | #define E1000_WUC_PHY_WAKE 0x00000100 /* if PHY supports wakeup */ | ||
59 | 60 | ||
60 | /* Wake Up Filter Control */ | 61 | /* Wake Up Filter Control */ |
61 | #define E1000_WUFC_LNKC 0x00000001 /* Link Status Change Wakeup Enable */ | 62 | #define E1000_WUFC_LNKC 0x00000001 /* Link Status Change Wakeup Enable */ |
@@ -65,6 +66,13 @@ | |||
65 | #define E1000_WUFC_BC 0x00000010 /* Broadcast Wakeup Enable */ | 66 | #define E1000_WUFC_BC 0x00000010 /* Broadcast Wakeup Enable */ |
66 | #define E1000_WUFC_ARP 0x00000020 /* ARP Request Packet Wakeup Enable */ | 67 | #define E1000_WUFC_ARP 0x00000020 /* ARP Request Packet Wakeup Enable */ |
67 | 68 | ||
69 | /* Wake Up Status */ | ||
70 | #define E1000_WUS_LNKC E1000_WUFC_LNKC | ||
71 | #define E1000_WUS_MAG E1000_WUFC_MAG | ||
72 | #define E1000_WUS_EX E1000_WUFC_EX | ||
73 | #define E1000_WUS_MC E1000_WUFC_MC | ||
74 | #define E1000_WUS_BC E1000_WUFC_BC | ||
75 | |||
68 | /* Extended Device Control */ | 76 | /* Extended Device Control */ |
69 | #define E1000_CTRL_EXT_SDP7_DATA 0x00000080 /* Value of SW Definable Pin 7 */ | 77 | #define E1000_CTRL_EXT_SDP7_DATA 0x00000080 /* Value of SW Definable Pin 7 */ |
70 | #define E1000_CTRL_EXT_EE_RST 0x00002000 /* Reinitialize from EEPROM */ | 78 | #define E1000_CTRL_EXT_EE_RST 0x00002000 /* Reinitialize from EEPROM */ |
@@ -77,6 +85,7 @@ | |||
77 | #define E1000_CTRL_EXT_IAME 0x08000000 /* Interrupt acknowledge Auto-mask */ | 85 | #define E1000_CTRL_EXT_IAME 0x08000000 /* Interrupt acknowledge Auto-mask */ |
78 | #define E1000_CTRL_EXT_INT_TIMER_CLR 0x20000000 /* Clear Interrupt timers after IMS clear */ | 86 | #define E1000_CTRL_EXT_INT_TIMER_CLR 0x20000000 /* Clear Interrupt timers after IMS clear */ |
79 | #define E1000_CTRL_EXT_PBA_CLR 0x80000000 /* PBA Clear */ | 87 | #define E1000_CTRL_EXT_PBA_CLR 0x80000000 /* PBA Clear */ |
88 | #define E1000_CTRL_EXT_PHYPDEN 0x00100000 | ||
80 | 89 | ||
81 | /* Receive Descriptor bit definitions */ | 90 | /* Receive Descriptor bit definitions */ |
82 | #define E1000_RXD_STAT_DD 0x01 /* Descriptor Done */ | 91 | #define E1000_RXD_STAT_DD 0x01 /* Descriptor Done */ |
@@ -140,6 +149,7 @@ | |||
140 | #define E1000_RCTL_DTYP_PS 0x00000400 /* Packet Split descriptor */ | 149 | #define E1000_RCTL_DTYP_PS 0x00000400 /* Packet Split descriptor */ |
141 | #define E1000_RCTL_RDMTS_HALF 0x00000000 /* Rx desc min threshold size */ | 150 | #define E1000_RCTL_RDMTS_HALF 0x00000000 /* Rx desc min threshold size */ |
142 | #define E1000_RCTL_MO_SHIFT 12 /* multicast offset shift */ | 151 | #define E1000_RCTL_MO_SHIFT 12 /* multicast offset shift */ |
152 | #define E1000_RCTL_MO_3 0x00003000 /* multicast offset 15:4 */ | ||
143 | #define E1000_RCTL_BAM 0x00008000 /* broadcast enable */ | 153 | #define E1000_RCTL_BAM 0x00008000 /* broadcast enable */ |
144 | /* these buffer sizes are valid if E1000_RCTL_BSEX is 0 */ | 154 | /* these buffer sizes are valid if E1000_RCTL_BSEX is 0 */ |
145 | #define E1000_RCTL_SZ_2048 0x00000000 /* Rx buffer size 2048 */ | 155 | #define E1000_RCTL_SZ_2048 0x00000000 /* Rx buffer size 2048 */ |
@@ -153,6 +163,7 @@ | |||
153 | #define E1000_RCTL_VFE 0x00040000 /* vlan filter enable */ | 163 | #define E1000_RCTL_VFE 0x00040000 /* vlan filter enable */ |
154 | #define E1000_RCTL_CFIEN 0x00080000 /* canonical form enable */ | 164 | #define E1000_RCTL_CFIEN 0x00080000 /* canonical form enable */ |
155 | #define E1000_RCTL_CFI 0x00100000 /* canonical form indicator */ | 165 | #define E1000_RCTL_CFI 0x00100000 /* canonical form indicator */ |
166 | #define E1000_RCTL_PMCF 0x00800000 /* pass MAC control frames */ | ||
156 | #define E1000_RCTL_BSEX 0x02000000 /* Buffer size extension */ | 167 | #define E1000_RCTL_BSEX 0x02000000 /* Buffer size extension */ |
157 | #define E1000_RCTL_SECRC 0x04000000 /* Strip Ethernet CRC */ | 168 | #define E1000_RCTL_SECRC 0x04000000 /* Strip Ethernet CRC */ |
158 | 169 | ||
@@ -255,11 +266,16 @@ | |||
255 | #define AUTONEG_ADVERTISE_SPEED_DEFAULT E1000_ALL_SPEED_DUPLEX | 266 | #define AUTONEG_ADVERTISE_SPEED_DEFAULT E1000_ALL_SPEED_DUPLEX |
256 | 267 | ||
257 | /* LED Control */ | 268 | /* LED Control */ |
269 | #define E1000_PHY_LED0_MODE_MASK 0x00000007 | ||
270 | #define E1000_PHY_LED0_IVRT 0x00000008 | ||
271 | #define E1000_PHY_LED0_MASK 0x0000001F | ||
272 | |||
258 | #define E1000_LEDCTL_LED0_MODE_MASK 0x0000000F | 273 | #define E1000_LEDCTL_LED0_MODE_MASK 0x0000000F |
259 | #define E1000_LEDCTL_LED0_MODE_SHIFT 0 | 274 | #define E1000_LEDCTL_LED0_MODE_SHIFT 0 |
260 | #define E1000_LEDCTL_LED0_IVRT 0x00000040 | 275 | #define E1000_LEDCTL_LED0_IVRT 0x00000040 |
261 | #define E1000_LEDCTL_LED0_BLINK 0x00000080 | 276 | #define E1000_LEDCTL_LED0_BLINK 0x00000080 |
262 | 277 | ||
278 | #define E1000_LEDCTL_MODE_LINK_UP 0x2 | ||
263 | #define E1000_LEDCTL_MODE_LED_ON 0xE | 279 | #define E1000_LEDCTL_MODE_LED_ON 0xE |
264 | #define E1000_LEDCTL_MODE_LED_OFF 0xF | 280 | #define E1000_LEDCTL_MODE_LED_OFF 0xF |
265 | 281 | ||
@@ -676,6 +692,8 @@ | |||
676 | #define IFE_C_E_PHY_ID 0x02A80310 | 692 | #define IFE_C_E_PHY_ID 0x02A80310 |
677 | #define BME1000_E_PHY_ID 0x01410CB0 | 693 | #define BME1000_E_PHY_ID 0x01410CB0 |
678 | #define BME1000_E_PHY_ID_R2 0x01410CB1 | 694 | #define BME1000_E_PHY_ID_R2 0x01410CB1 |
695 | #define I82577_E_PHY_ID 0x01540050 | ||
696 | #define I82578_E_PHY_ID 0x004DD040 | ||
679 | 697 | ||
680 | /* M88E1000 Specific Registers */ | 698 | /* M88E1000 Specific Registers */ |
681 | #define M88E1000_PHY_SPEC_CTRL 0x10 /* PHY Specific Control Register */ | 699 | #define M88E1000_PHY_SPEC_CTRL 0x10 /* PHY Specific Control Register */ |
@@ -729,6 +747,9 @@ | |||
729 | #define M88EC018_EPSCR_DOWNSHIFT_COUNTER_MASK 0x0E00 | 747 | #define M88EC018_EPSCR_DOWNSHIFT_COUNTER_MASK 0x0E00 |
730 | #define M88EC018_EPSCR_DOWNSHIFT_COUNTER_5X 0x0800 | 748 | #define M88EC018_EPSCR_DOWNSHIFT_COUNTER_5X 0x0800 |
731 | 749 | ||
750 | #define I82578_EPSCR_DOWNSHIFT_ENABLE 0x0020 | ||
751 | #define I82578_EPSCR_DOWNSHIFT_COUNTER_MASK 0x001C | ||
752 | |||
732 | /* BME1000 PHY Specific Control Register */ | 753 | /* BME1000 PHY Specific Control Register */ |
733 | #define BME1000_PSCR_ENABLE_DOWNSHIFT 0x0800 /* 1 = enable downshift */ | 754 | #define BME1000_PSCR_ENABLE_DOWNSHIFT 0x0800 /* 1 = enable downshift */ |
734 | 755 | ||