xref: /freebsd/sys/dev/mii/miibus_if.m (revision a4e5e0106ac7145f56eb39a691e302cabb4635be)
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