xref: /freebsd/sys/dev/mii/miibus_if.m (revision f4b37ed0f8b307b1f3f0f630ca725d68f1dff30d)
1# $FreeBSD$
2
3#include <sys/bus.h>
4
5INTERFACE miibus;
6
7#
8# Read register from device on MII bus
9#
10METHOD int readreg {
11	device_t		dev;
12	int			phy;
13	int			reg;
14};
15
16#
17# Write register to device on MII bus
18#
19METHOD 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#
29METHOD void statchg {
30	device_t		dev;
31};
32
33#
34# Notify bus about PHY link change.
35#
36METHOD void linkchg {
37	device_t		dev;
38};
39
40#
41# Notify bus that media has been set.
42#
43METHOD void mediainit {
44	device_t		dev;
45};
46