20#define MII_PHYSID1 0x02
21#define MII_PHYSID2 0x03
22#define MII_ADVERTISE 0x04
24#define MII_EXPANSION 0x06
25#define MII_CTRL1000 0x09
26#define MII_STAT1000 0x0a
27#define MII_MMD_CTRL 0x0d
28#define MII_MMD_DATA 0x0e
29#define MII_ESTATUS 0x0f
30#define MII_DCOUNTER 0x12
31#define MII_FCSCOUNTER 0x13
32#define MII_NWAYTEST 0x14
33#define MII_RERRCOUNTER 0x15
34#define MII_SREVISION 0x16
36#define MII_LBRERROR 0x18
37#define MII_PHYADDR 0x19
39#define MII_TPISTATUS 0x1b
40#define MII_NCONFIG 0x1c
43#define BMCR_RESV 0x003f
44#define BMCR_SPEED1000 0x0040
45#define BMCR_CTST 0x0080
46#define BMCR_FULLDPLX 0x0100
47#define BMCR_ANRESTART 0x0200
48#define BMCR_ISOLATE 0x0400
49#define BMCR_PDOWN 0x0800
50#define BMCR_ANENABLE 0x1000
51#define BMCR_SPEED100 0x2000
52#define BMCR_LOOPBACK 0x4000
53#define BMCR_RESET 0x8000
56#define BMSR_ERCAP 0x0001
57#define BMSR_JCD 0x0002
58#define BMSR_LSTATUS 0x0004
59#define BMSR_ANEGCAPABLE 0x0008
60#define BMSR_RFAULT 0x0010
61#define BMSR_ANEGCOMPLETE 0x0020
62#define BMSR_RESV 0x00c0
63#define BMSR_ESTATEN 0x0100
64#define BMSR_100HALF2 0x0200
65#define BMSR_100FULL2 0x0400
66#define BMSR_10HALF 0x0800
67#define BMSR_10FULL 0x1000
68#define BMSR_100HALF 0x2000
69#define BMSR_100FULL 0x4000
70#define BMSR_100BASE4 0x8000
73#define ADVERTISE_SLCT 0x001f
74#define ADVERTISE_CSMA 0x0001
75#define ADVERTISE_10HALF 0x0020
76#define ADVERTISE_1000XFULL 0x0020
77#define ADVERTISE_10FULL 0x0040
78#define ADVERTISE_1000XHALF 0x0040
79#define ADVERTISE_100HALF 0x0080
80#define ADVERTISE_1000XPAUSE 0x0080
81#define ADVERTISE_100FULL 0x0100
82#define ADVERTISE_1000XPSE_ASYM 0x0100
83#define ADVERTISE_100BASE4 0x0200
84#define ADVERTISE_PAUSE_CAP 0x0400
85#define ADVERTISE_PAUSE_ASYM 0x0800
86#define ADVERTISE_RESV 0x1000
87#define ADVERTISE_RFAULT 0x2000
88#define ADVERTISE_LPACK 0x4000
89#define ADVERTISE_NPAGE 0x8000
91#define ADVERTISE_FULL ( ADVERTISE_100FULL | ADVERTISE_10FULL | \
93#define ADVERTISE_ALL ( ADVERTISE_10HALF | ADVERTISE_10FULL | \
94 ADVERTISE_100HALF | ADVERTISE_100FULL )
97#define LPA_SLCT 0x001f
98#define LPA_10HALF 0x0020
99#define LPA_1000XFULL 0x0020
100#define LPA_10FULL 0x0040
101#define LPA_1000XHALF 0x0040
102#define LPA_100HALF 0x0080
103#define LPA_1000XPAUSE 0x0080
104#define LPA_100FULL 0x0100
105#define LPA_1000XPAUSE_ASYM 0x0100
106#define LPA_100BASE4 0x0200
107#define LPA_PAUSE_CAP 0x0400
108#define LPA_PAUSE_ASYM 0x0800
109#define LPA_RESV 0x1000
110#define LPA_RFAULT 0x2000
111#define LPA_LPACK 0x4000
112#define LPA_NPAGE 0x8000
114#define LPA_DUPLEX ( LPA_10FULL | LPA_100FULL )
115#define LPA_100 ( LPA_100FULL | LPA_100HALF | LPA_100BASE4 )
118#define EXPANSION_NWAY 0x0001
119#define EXPANSION_LCWP 0x0002
120#define EXPANSION_ENABLENPAGE 0x0004
121#define EXPANSION_NPCAPABLE 0x0008
122#define EXPANSION_MFAULTS 0x0010
123#define EXPANSION_RESV 0xffe0
125#define ESTATUS_1000_TFULL 0x2000
126#define ESTATUS_1000_THALF 0x1000
129#define NWAYTEST_RESV1 0x00ff
130#define NWAYTEST_LOOPBACK 0x0100
131#define NWAYTEST_RESV2 0xfe00
134#define ADVERTISE_1000FULL 0x0200
135#define ADVERTISE_1000HALF 0x0100
138#define LPA_1000LOCALRXOK 0x2000
139#define LPA_1000REMRXOK 0x1000
140#define LPA_1000FULL 0x0800
141#define LPA_1000HALF 0x0400
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Network device management.
int(* mdio_read)(struct net_device *dev, int phy_id, int location)
unsigned int supports_gmii
void(* mdio_write)(struct net_device *dev, int phy_id, int location, int val)