]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sys/dev/mii/miibus_if.m
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / sys / dev / mii / miibus_if.m
1 # $FreeBSD$
2
3 #include <sys/bus.h>
4
5 INTERFACE miibus;
6
7 #
8 # Read register from device on MII bus
9 #
10 METHOD int readreg {
11         device_t                dev;
12         int                     phy;
13         int                     reg;
14 };
15
16 #
17 # Write register to device on MII bus
18 #
19 METHOD int writereg {
20         device_t                dev;
21         int                     phy;
22         int                     reg;
23         int                     val;
24 };
25
26 #
27 # Notify bus about PHY status change.
28 #
29 METHOD void statchg {
30         device_t                dev;
31 };
32
33 #
34 # Notify bus about PHY link change.
35 #
36 METHOD void linkchg {
37         device_t                dev;
38 };
39
40 #
41 # Notify bus that media has been set.
42 #
43 METHOD void mediainit {
44         device_t                dev;
45 };