summaryrefslogtreecommitdiffstats
path: root/sys/modules/sio
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-12-27 19:50:37 +0000
committerimp <imp@FreeBSD.org>2003-12-27 19:50:37 +0000
commit506d536021dc01b6169e31a74c209d095ba82fb1 (patch)
tree49e54968835f3656bea4e4041ae721260a4d6279 /sys/modules/sio
parent7d044f354480e69bdd64bec9b4f0f7a8a39b2e17 (diff)
downloadFreeBSD-src-506d536021dc01b6169e31a74c209d095ba82fb1.zip
FreeBSD-src-506d536021dc01b6169e31a74c209d095ba82fb1.tar.gz
New sio module. A number of people have suggested this over the years
(most recently bde), so I'll commit the module I've had knocking around in my tree for a while. This may have some rough edges, so if you are able to build it on non-i386 platform (including pc98) please let me know you succeeded. When I get enough reports, I'll connect it to the build. If there are problems, feel free to fix them. Suggested by: bde
Diffstat (limited to 'sys/modules/sio')
-rw-r--r--sys/modules/sio/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/sys/modules/sio/Makefile b/sys/modules/sio/Makefile
new file mode 100644
index 0000000..5feb902
--- /dev/null
+++ b/sys/modules/sio/Makefile
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/sio
+
+KMOD= sio
+SRCS= sio.c sio_pccard.c sio_pci.c sio_puc.c
+
+.if ${MACHINE} == "sparc64"
+### untested
+CFLAGS += sio_ebus.c
+.endif
+.if ${MACHINE} == "pc98"
+CFLAGS+= -DPC98
+.else
+SRCS+= sio_isa.c
+.endif
+
+opt_compat.h:
+ @echo '#define COMPAT_43 1' > opt_compat.h
+ @echo '#define COMPAT_FREEBSD4 1' >> opt_compat.h
+
+SRCS+= opt_sio.h opt_ddb.h opt_compat.h opt_comconsole.h \
+ bus_if.h card_if.h device_if.h isa_if.h pci_if.h
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud