mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
ed8c6514c4
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.
25 lines
770 B
Makefile
25 lines
770 B
Makefile
# $FreeBSD$
|
|
|
|
S = ${.CURDIR}/../..
|
|
.PATH: $S/dev/mii
|
|
KMOD = miibus
|
|
SRCS = mii.c mii_physubr.c ukphy.c ukphy_subr.c bus_if.h
|
|
SRCS += miibus_if.h device_if.h miibus_if.c exphy.c nsphy.c
|
|
SRCS += mlphy.c tlphy.c rlphy.c amphy.c mxphy.c
|
|
CLEANFILES += device_if.h bus_if.h miibus_if.h miibus_if.c
|
|
CFLAGS += ${DEBUG_FLAGS}
|
|
|
|
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
|
|
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
|
|
|
|
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
|
|
perl $S/kern/makedevops.pl -h $S/kern/bus_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
|
|
|
|
miibus_if.c: $S/kern/makedevops.pl $S/dev/mii/miibus_if.m
|
|
perl $S/kern/makedevops.pl -c $S/dev/mii/miibus_if.m
|
|
|
|
.include <bsd.kmod.mk>
|