1999-08-27 21:08:13 -04:00
|
|
|
# $FreeBSD$
|
1999-08-21 20:56:39 -04:00
|
|
|
|
2000-04-08 10:17:18 -04:00
|
|
|
#include <sys/bus.h>
|
|
|
|
|
|
1999-08-21 20:56:39 -04:00
|
|
|
INTERFACE miibus;
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Read register from device on MII bus
|
|
|
|
|
#
|
|
|
|
|
METHOD int readreg {
|
|
|
|
|
device_t dev;
|
|
|
|
|
int phy;
|
|
|
|
|
int reg;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Write register to device on MII bus
|
|
|
|
|
#
|
|
|
|
|
METHOD int writereg {
|
|
|
|
|
device_t dev;
|
|
|
|
|
int phy;
|
|
|
|
|
int reg;
|
|
|
|
|
int val;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Notify bus about PHY status change.
|
|
|
|
|
#
|
|
|
|
|
METHOD void statchg {
|
|
|
|
|
device_t dev;
|
|
|
|
|
};
|
|
|
|
|
|
2001-09-29 14:40:06 -04:00
|
|
|
#
|
|
|
|
|
# Notify bus about PHY link change.
|
|
|
|
|
#
|
|
|
|
|
METHOD void linkchg {
|
|
|
|
|
device_t dev;
|
|
|
|
|
};
|
|
|
|
|
|
1999-08-21 20:56:39 -04:00
|
|
|
#
|
|
|
|
|
# Notify bus that media has been set.
|
|
|
|
|
#
|
|
|
|
|
METHOD void mediainit {
|
|
|
|
|
device_t dev;
|
|
|
|
|
};
|