From ed8c6514c447cdef679d8513e09ca4b41cef5047 Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Sat, 16 Oct 1999 05:24:13 +0000 Subject: Convert the mx driver to miibus. In order to make this work, I created a pseudo-PHY driver to deal with Macronix chips that use the built-in NWAY support and symbol mode port. This is actually all of them, with the exception of the original MX98713 which presents its NWAY support via the MII serial interface. The mxphy driver actually manipulates the controller registers directly rather than using the miibus_readreg()/miibus_writereg() bus interface since there are no MII registers to read. The mx driver itself pretends that the NWAY interface is a PHY locayed at MII address 31 for the sole purpose of allowing the mxphy_probe() routine to know when it needs to attach to a host controller. --- sys/modules/mx/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/modules/mx') diff --git a/sys/modules/mx/Makefile b/sys/modules/mx/Makefile index 8cbcad59dd28c..0ffb2f6416cdd 100644 --- a/sys/modules/mx/Makefile +++ b/sys/modules/mx/Makefile @@ -3,8 +3,8 @@ S = ${.CURDIR}/../.. .PATH: $S/pci KMOD = if_mx -SRCS = if_mx.c opt_bdg.h device_if.h bus_if.h pci_if.h -CLEANFILES += opt_bdg.h device_if.h bus_if.h pci_if.h +SRCS = if_mx.c opt_bdg.h device_if.h bus_if.h pci_if.h miibus_if.h +CLEANFILES += opt_bdg.h device_if.h bus_if.h pci_if.h miibus_if.h CFLAGS += ${DEBUG_FLAGS} opt_bdg.h: @@ -19,4 +19,7 @@ bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m perl $S/kern/makedevops.pl -h $S/pci/pci_if.m +miibus_if.h: $S/kern/makedevops.pl $S/dev/mii/miibus_if.m + perl $S/kern/makedevops.pl -h $S/dev/mii/miibus_if.m + .include -- cgit v1.3