summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/miibus_if.m
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1999-08-22 00:56:39 +0000
committerwpaul <wpaul@FreeBSD.org>1999-08-22 00:56:39 +0000
commitebc95223ccc81a16307b156a75e68cb5399c5b13 (patch)
tree499ad04cb8425c6d302c22029ec464cf4856c8bb /sys/dev/mii/miibus_if.m
parent9f71d680aa0a36148f27d5ed32b29015c2497fd2 (diff)
downloadFreeBSD-src-ebc95223ccc81a16307b156a75e68cb5399c5b13.zip
FreeBSD-src-ebc95223ccc81a16307b156a75e68cb5399c5b13.tar.gz
Crap, I knew I was going to forget something: add missing miibus method
description file which slipped through the cracks. Pointed out by: Doug <Doug@gorean.org>
Diffstat (limited to 'sys/dev/mii/miibus_if.m')
-rw-r--r--sys/dev/mii/miibus_if.m36
1 files changed, 36 insertions, 0 deletions
diff --git a/sys/dev/mii/miibus_if.m b/sys/dev/mii/miibus_if.m
new file mode 100644
index 0000000..2bf1dd1
--- /dev/null
+++ b/sys/dev/mii/miibus_if.m
@@ -0,0 +1,36 @@
+# $Id$
+
+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;
+};
OpenPOWER on IntegriCloud