summaryrefslogtreecommitdiffstats
path: root/sys/modules/rl
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1999-08-31 14:45:51 +0000
committerwpaul <wpaul@FreeBSD.org>1999-08-31 14:45:51 +0000
commit25d821fe27ebfe2582f866efccb7fecde2c8cd74 (patch)
tree13e5965d1083e4e72ecc99cc2ba0afe27dae37c4 /sys/modules/rl
parent741dfcad128d6a76ae8793f6f7acef20bc2bd17c (diff)
downloadFreeBSD-src-25d821fe27ebfe2582f866efccb7fecde2c8cd74.zip
FreeBSD-src-25d821fe27ebfe2582f866efccb7fecde2c8cd74.tar.gz
Convert the RealTek 8139 driver to newbus and miibus in one swell foop.
Also set it up to be compiled as a module.
Diffstat (limited to 'sys/modules/rl')
-rw-r--r--sys/modules/rl/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/sys/modules/rl/Makefile b/sys/modules/rl/Makefile
new file mode 100644
index 0000000..a7c836b
--- /dev/null
+++ b/sys/modules/rl/Makefile
@@ -0,0 +1,34 @@
+# $FreeBSD$
+
+S = ${.CURDIR}/../..
+.PATH: $S/pci
+KMOD = rl
+SRCS = if_rl.c rl.h bpf.h opt_bdg.h device_if.h bus_if.h pci_if.h
+SRCS += miibus_if.h
+CLEANFILES += rl.h bpf.h opt_bdg.h device_if.h bus_if.h pci_if.h
+CLEANFILES += miibus_if.h
+
+CFLAGS += ${DEBUG_FLAGS}
+
+rl.h:
+ echo "#define NRL 1" > rl.h
+
+bpf.h:
+ echo "#define NBPF 1" > bpf.h
+
+opt_bdg.h:
+ touch opt_bdg.h
+
+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
+
+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 <bsd.kmod.mk>
OpenPOWER on IntegriCloud