summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2004-12-12 20:05:50 +0000
committerimp <imp@FreeBSD.org>2004-12-12 20:05:50 +0000
commita9476981be7bfdb101b71b1bdc66d3918dcd0626 (patch)
treebd14856027d7af51b26f18ce2b15ebf953635bd1 /sys/modules
parent8944146336baa793540971bfe7b1262ccd13f2cd (diff)
downloadFreeBSD-src-a9476981be7bfdb101b71b1bdc66d3918dcd0626.zip
FreeBSD-src-a9476981be7bfdb101b71b1bdc66d3918dcd0626.tar.gz
Separate mse driver into a core driver and a bus attachments. Separate out
the ISA and CBUS (called isa on pc98) attachments. Eliminate all PC98 ifdefs in the process (the driver in pc98/pc98/mse.c was a copy of the one in i386/isa/mse.c with PC98 ifdefs). Create a module for this driver. I've tested this my PC-9821RaS40 with moused. I've not tested this on i386 because I have no InPort cards, or similar such things. NEC standardized on bus mice very early, long before ps/2 mice ports apeared, so all PC-98 machines supported by FreeBSD/pc98 have bus mice, I believe. Reviewed by: nyan-san
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile2
-rw-r--r--sys/modules/mse/Makefile14
2 files changed, 16 insertions, 0 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 0e7a482..6846b6e 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -141,6 +141,7 @@ SUBDIR= ${_3dfx} \
mlx \
${_mly} \
mpt \
+ ${_mse} \
msdosfs \
msdosfs_iconv \
my \
@@ -315,6 +316,7 @@ _io= io
_linprocfs= linprocfs
_linux= linux
_lnc= lnc
+_mse= mse
_ncp= ncp
_ncv= ncv
_ndis= ndis
diff --git a/sys/modules/mse/Makefile b/sys/modules/mse/Makefile
new file mode 100644
index 0000000..4cc68c1
--- /dev/null
+++ b/sys/modules/mse/Makefile
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/mse
+
+KMOD= mse
+SRCS= mse.c device_if.h bus_if.h isa_if.h
+
+.if (${MACHINE} == "pc98")
+SRCS+= mse_cbus.c
+.else
+SRCS+= mse_isa.c
+.endif
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud