1# $FreeBSD: src/sys/dev/mii/miibus_if.m,v 1.2 1999/08/28 00:42:14 peter Exp $ 2# $DragonFly: src/sys/dev/netif/mii_layer/miibus_if.m,v 1.3 2003/11/17 00:54:40 asmodai Exp $ 3 4#include <sys/bus.h> 5 6INTERFACE miibus; 7 8# 9# Read register from device on MII bus 10# 11METHOD int readreg { 12 device_t dev; 13 int phy; 14 int reg; 15}; 16 17# 18# Write register to device on MII bus 19# 20METHOD int writereg { 21 device_t dev; 22 int phy; 23 int reg; 24 int val; 25}; 26 27# 28# Notify bus about PHY status change. 29# 30METHOD void statchg { 31 device_t dev; 32}; 33 34# 35# Notify bus that media has been set. 36# 37METHOD void mediainit { 38 device_t dev; 39}; 40