1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1999-08-22 00:56:39 +00:00
|
|
|
|
2000-04-08 14:17:18 +00:00
|
|
|
#include <sys/bus.h>
|
|
|
|
|
1999-08-22 00:56:39 +00: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;
|
|
|
|
};
|
|
|
|
|
|
|
|
#
|
|
|
|
# Notify bus that media has been set.
|
|
|
|
#
|
|
|
|
METHOD void mediainit {
|
|
|
|
device_t dev;
|
|
|
|
};
|