19 #include <linux/kernel.h>
20 #include <linux/module.h>
21 #include <linux/mii.h>
22 #include <linux/ethtool.h>
24 #include <linux/netdevice.h>
27 static int smsc_phy_config_intr(
struct phy_device *phydev)
34 return rc < 0 ? rc : 0;
37 static int smsc_phy_ack_interrupt(
struct phy_device *phydev)
41 return rc < 0 ? rc : 0;
44 static int smsc_phy_config_init(
struct phy_device *phydev)
56 return smsc_phy_ack_interrupt (phydev);
59 static int lan87xx_config_init(
struct phy_device *phydev)
82 return smsc_phy_ack_interrupt(phydev);
85 static int lan911x_config_init(
struct phy_device *phydev)
87 return smsc_phy_ack_interrupt(phydev);
93 .phy_id_mask = 0xfffffff0,
94 .name =
"SMSC LAN83C185",
114 .phy_id = 0x0007c0b0,
115 .phy_id_mask = 0xfffffff0,
116 .name =
"SMSC LAN8187",
136 .phy_id = 0x0007c0c0,
137 .phy_id_mask = 0xfffffff0,
138 .name =
"SMSC LAN8700",
158 .phy_id = 0x0007c0d0,
159 .phy_id_mask = 0xfffffff0,
160 .name =
"SMSC LAN911x Internal PHY",
180 .phy_id = 0x0007c0f0,
181 .phy_id_mask = 0xfffffff0,
182 .name =
"SMSC LAN8710/LAN8720",
203 static int __init smsc_init(
void)
209 static void __exit smsc_exit(
void)
223 { 0x0007c0a0, 0xfffffff0 },
224 { 0x0007c0b0, 0xfffffff0 },
225 { 0x0007c0c0, 0xfffffff0 },
226 { 0x0007c0d0, 0xfffffff0 },
227 { 0x0007c0f0, 0xfffffff0 },