Deleted Added
full compact
1# $FreeBSD: head/sys/dev/mii/miibus_if.m 50477 1999-08-28 01:08:13Z peter $
1# $FreeBSD: head/sys/dev/mii/miibus_if.m 59093 2000-04-08 14:17:18Z dfr $
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 that media has been set.
35#
36METHOD void mediainit {
37 device_t dev;
38};