16 #include <linux/kernel.h>
17 #include <linux/string.h>
18 #include <linux/errno.h>
23 #include <linux/netdevice.h>
28 #include <linux/module.h>
29 #include <linux/mii.h>
30 #include <linux/ethtool.h>
35 #include <asm/uaccess.h>
42 #define MII_QS6612_MCR 17
43 #define MII_QS6612_FTR 27
44 #define MII_QS6612_MCO 28
45 #define MII_QS6612_ISR 29
46 #define MII_QS6612_IMR 30
47 #define MII_QS6612_IMR_INIT 0x003a
48 #define MII_QS6612_PCR 31
50 #define QS6612_PCR_AN_COMPLETE 0x1000
51 #define QS6612_PCR_RLBEN 0x0200
52 #define QS6612_PCR_DCREN 0x0100
53 #define QS6612_PCR_4B5BEN 0x0040
54 #define QS6612_PCR_TX_ISOLATE 0x0020
55 #define QS6612_PCR_MLT3_DIS 0x0002
56 #define QS6612_PCR_SCRM_DESCRM 0x0001
63 static int qs6612_config_init(
struct phy_device *phydev)
79 static int qs6612_ack_interrupt(
struct phy_device *phydev)
101 static int qs6612_config_intr(
struct phy_device *phydev)
115 .phy_id = 0x00181440,
117 .phy_id_mask = 0xfffffff0,
120 .config_init = qs6612_config_init,
123 .ack_interrupt = qs6612_ack_interrupt,
124 .config_intr = qs6612_config_intr,
128 static int __init qs6612_init(
void)
133 static void __exit qs6612_exit(
void)
142 { 0x00181440, 0xfffffff0 },