mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
46 lines
533 B
Objective-C
46 lines
533 B
Objective-C
# $FreeBSD$
|
|
|
|
#include <sys/bus.h>
|
|
|
|
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 about PHY link change.
|
|
#
|
|
METHOD void linkchg {
|
|
device_t dev;
|
|
};
|
|
|
|
#
|
|
# Notify bus that media has been set.
|
|
#
|
|
METHOD void mediainit {
|
|
device_t dev;
|
|
};
|