diff options
Diffstat (limited to 'drivers/net/usb/smsc95xx.h')
-rw-r--r-- | drivers/net/usb/smsc95xx.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/net/usb/smsc95xx.h b/drivers/net/usb/smsc95xx.h index 2ff9815aa27c..f360ee372554 100644 --- a/drivers/net/usb/smsc95xx.h +++ b/drivers/net/usb/smsc95xx.h | |||
@@ -53,6 +53,11 @@ | |||
53 | #define ID_REV_CHIP_ID_MASK_ (0xFFFF0000) | 53 | #define ID_REV_CHIP_ID_MASK_ (0xFFFF0000) |
54 | #define ID_REV_CHIP_REV_MASK_ (0x0000FFFF) | 54 | #define ID_REV_CHIP_REV_MASK_ (0x0000FFFF) |
55 | #define ID_REV_CHIP_ID_9500_ (0x9500) | 55 | #define ID_REV_CHIP_ID_9500_ (0x9500) |
56 | #define ID_REV_CHIP_ID_9500A_ (0x9E00) | ||
57 | #define ID_REV_CHIP_ID_9512_ (0xEC00) | ||
58 | #define ID_REV_CHIP_ID_9530_ (0x9530) | ||
59 | #define ID_REV_CHIP_ID_89530_ (0x9E08) | ||
60 | #define ID_REV_CHIP_ID_9730_ (0x9730) | ||
56 | 61 | ||
57 | #define INT_STS (0x08) | 62 | #define INT_STS (0x08) |
58 | #define INT_STS_TX_STOP_ (0x00020000) | 63 | #define INT_STS_TX_STOP_ (0x00020000) |
@@ -203,8 +208,11 @@ | |||
203 | #define VLAN2 (0x124) | 208 | #define VLAN2 (0x124) |
204 | 209 | ||
205 | #define WUFF (0x128) | 210 | #define WUFF (0x128) |
211 | #define LAN9500_WUFF_NUM (4) | ||
212 | #define LAN9500A_WUFF_NUM (8) | ||
206 | 213 | ||
207 | #define WUCSR (0x12C) | 214 | #define WUCSR (0x12C) |
215 | #define WUCSR_WFF_PTR_RST_ (0x80000000) | ||
208 | #define WUCSR_GUE_ (0x00000200) | 216 | #define WUCSR_GUE_ (0x00000200) |
209 | #define WUCSR_WUFR_ (0x00000040) | 217 | #define WUCSR_WUFR_ (0x00000040) |
210 | #define WUCSR_MPR_ (0x00000020) | 218 | #define WUCSR_MPR_ (0x00000020) |
@@ -218,6 +226,23 @@ | |||
218 | 226 | ||
219 | /* Vendor-specific PHY Definitions */ | 227 | /* Vendor-specific PHY Definitions */ |
220 | 228 | ||
229 | /* EDPD NLP / crossover time configuration (LAN9500A only) */ | ||
230 | #define PHY_EDPD_CONFIG (16) | ||
231 | #define PHY_EDPD_CONFIG_TX_NLP_EN_ ((u16)0x8000) | ||
232 | #define PHY_EDPD_CONFIG_TX_NLP_1000_ ((u16)0x0000) | ||
233 | #define PHY_EDPD_CONFIG_TX_NLP_768_ ((u16)0x2000) | ||
234 | #define PHY_EDPD_CONFIG_TX_NLP_512_ ((u16)0x4000) | ||
235 | #define PHY_EDPD_CONFIG_TX_NLP_256_ ((u16)0x6000) | ||
236 | #define PHY_EDPD_CONFIG_RX_1_NLP_ ((u16)0x1000) | ||
237 | #define PHY_EDPD_CONFIG_RX_NLP_64_ ((u16)0x0000) | ||
238 | #define PHY_EDPD_CONFIG_RX_NLP_256_ ((u16)0x0400) | ||
239 | #define PHY_EDPD_CONFIG_RX_NLP_512_ ((u16)0x0800) | ||
240 | #define PHY_EDPD_CONFIG_RX_NLP_1000_ ((u16)0x0C00) | ||
241 | #define PHY_EDPD_CONFIG_EXT_CROSSOVER_ ((u16)0x0001) | ||
242 | #define PHY_EDPD_CONFIG_DEFAULT (PHY_EDPD_CONFIG_TX_NLP_EN_ | \ | ||
243 | PHY_EDPD_CONFIG_TX_NLP_768_ | \ | ||
244 | PHY_EDPD_CONFIG_RX_1_NLP_) | ||
245 | |||
221 | /* Mode Control/Status Register */ | 246 | /* Mode Control/Status Register */ |
222 | #define PHY_MODE_CTRL_STS (17) | 247 | #define PHY_MODE_CTRL_STS (17) |
223 | #define MODE_CTRL_STS_EDPWRDOWN_ ((u16)0x2000) | 248 | #define MODE_CTRL_STS_EDPWRDOWN_ ((u16)0x2000) |