xref: /freebsd/sys/dev/mii/miibus_if.m (revision 734e82fe33aa764367791a7d603b383996c6b40b)
1
2#include <sys/bus.h>
3
4INTERFACE miibus;
5
6#
7# Read register from device on MII bus
8#
9METHOD int readreg {
10	device_t		dev;
11	int			phy;
12	int			reg;
13};
14
15#
16# Write register to device on MII bus
17#
18METHOD int writereg {
19	device_t		dev;
20	int			phy;
21	int			reg;
22	int			val;
23};
24
25#
26# Notify bus about PHY status change.
27#
28METHOD void statchg {
29	device_t		dev;
30};
31
32#
33# Notify bus about PHY link change.
34#
35METHOD void linkchg {
36	device_t		dev;
37};
38
39#
40# Notify bus that media has been set.
41#
42METHOD void mediainit {
43	device_t		dev;
44};
45