From 34f40c9b637ce5f27d3e343cdffa1c0aed2669c4 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 27 Dec 2003 19:50:37 +0000 Subject: [PATCH] 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 --- sys/modules/sio/Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 sys/modules/sio/Makefile diff --git a/sys/modules/sio/Makefile b/sys/modules/sio/Makefile new file mode 100644 index 00000000000..5feb9025c68 --- /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