1# $FreeBSD$ 2 3INTERFACE miibus; 4 5# 6# Read register from device on MII bus 7# 8METHOD int readreg { 9 device_t dev; 10 int phy; 11 int reg; 12}; 13 14# 15# Write register to device on MII bus 16# 17METHOD int writereg { 18 device_t dev; 19 int phy; 20 int reg; 21 int val; 22}; 23 24# 25# Notify bus about PHY status change. 26# 27METHOD void statchg { 28 device_t dev; 29}; 30 31# 32# Notify bus that media has been set. 33# 34METHOD void mediainit { 35 device_t dev; 36}; 37