diff options
| author | khorben <khorben@NetBSD.org> | 2022-09-07 00:29:23 +0000 |
|---|---|---|
| committer | khorben <khorben@NetBSD.org> | 2022-09-07 00:29:23 +0000 |
| commit | c7e9e00a366427d29d7b3e049b58a7169641f7dc (patch) | |
| tree | 0ad7d2a02fd71a26a6f192bbbef7f1d0c2d77cff /sys/modules | |
| parent | e93852f4cb8a40505e3a36a54195ffc02588418d (diff) | |
emuxki(4): allow building as a module
Tested on NetBSD/amd64 with a Sound Blaster Live! Value (CT4870)
Note that this required setting outputs.master to the maximum value
allowed (255) to get sound out, and then cranking the volume pretty
high.
Additional sound cards sponsored by the NetBSD Foundation; thanks!
Diffstat (limited to 'sys/modules')
| -rw-r--r-- | sys/modules/Makefile | 3 | ||||
| -rw-r--r-- | sys/modules/emuxki/Makefile | 8 | ||||
| -rw-r--r-- | sys/modules/emuxki/Makefile.inc | 10 | ||||
| -rw-r--r-- | sys/modules/emuxki/emuxki.ioconf | 10 |
4 files changed, 30 insertions, 1 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile index cbb66cba326..48593dfdc5e 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.269 2022/07/28 22:00:23 riastradh Exp $ +# $NetBSD: Makefile,v 1.270 2022/09/07 00:29:23 khorben Exp $ .include <bsd.own.mk> @@ -225,6 +225,7 @@ SUBDIR+= amdsmn SUBDIR+= amdtemp SUBDIR+= amdzentemp SUBDIR+= coretemp +SUBDIR+= emuxki SUBDIR+= est SUBDIR+= hdafg SUBDIR+= hdaudio diff --git a/sys/modules/emuxki/Makefile b/sys/modules/emuxki/Makefile new file mode 100644 index 00000000000..432b1b90511 --- /dev/null +++ b/sys/modules/emuxki/Makefile @@ -0,0 +1,8 @@ +# $NetBSD: Makefile,v 1.1 2022/09/07 00:29:23 khorben Exp $ + +.include "../Makefile.inc" +.include "${.CURDIR}/Makefile.inc" + +KMOD= emuxki + +.include <bsd.kmodule.mk> diff --git a/sys/modules/emuxki/Makefile.inc b/sys/modules/emuxki/Makefile.inc new file mode 100644 index 00000000000..5e23e4e3319 --- /dev/null +++ b/sys/modules/emuxki/Makefile.inc @@ -0,0 +1,10 @@ +# $NetBSD: Makefile.inc,v 1.1 2022/09/07 00:29:23 khorben Exp $ + +# This file is used by modules and rump kernels + +IOCONFDIR:= ${.PARSEDIR} + +.PATH: ${NETBSDSRCDIR}/sys/dev/pci ${IOCONFDIR} + +IOCONF= emuxki.ioconf +SRCS+= emuxki.c diff --git a/sys/modules/emuxki/emuxki.ioconf b/sys/modules/emuxki/emuxki.ioconf new file mode 100644 index 00000000000..a612ce89c0b --- /dev/null +++ b/sys/modules/emuxki/emuxki.ioconf @@ -0,0 +1,10 @@ +# $NetBSD: emuxki.ioconf,v 1.1 2022/09/07 00:29:23 khorben Exp $ + +ioconf emuxki + +include "conf/files" +include "dev/pci/files.pci" + +pseudo-root pci* + +emuxki* at pci? dev ? function ? |
