summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1995-06-22 10:56:56 +0000
committerdfr <dfr@FreeBSD.org>1995-06-22 10:56:56 +0000
commitd03b2dfd3023dba5221b8981f028bf7890699286 (patch)
treec4bfd861a1a9f63a6fcc26e2e210f95db494a8e1 /sys/i386
parent5eba76030c8ad21550af156dc834fd9721e62149 (diff)
downloadFreeBSD-src-d03b2dfd3023dba5221b8981f028bf7890699286.zip
FreeBSD-src-d03b2dfd3023dba5221b8981f028bf7890699286.tar.gz
Add an option to the psm driver to skip the parts of the probe which break
some laptops with PS/2 mice. Submitted by: nsayer@quack.kfu.com
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/conf/LINT5
-rw-r--r--sys/i386/conf/NOTES5
-rw-r--r--sys/i386/isa/psm.c2
3 files changed, 10 insertions, 2 deletions
diff --git a/sys/i386/conf/LINT b/sys/i386/conf/LINT
index b233893..27f4ffa 100644
--- a/sys/i386/conf/LINT
+++ b/sys/i386/conf/LINT
@@ -2,7 +2,7 @@
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
-# $Id: LINT,v 1.183 1995/05/27 04:32:12 davidg Exp $
+# $Id: LINT,v 1.184 1995/05/28 13:24:16 rgrimes Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
@@ -525,6 +525,9 @@ options FDSEEKWAIT="16"
device lpt0 at isa? port "IO_LPT3" tty irq 7 vector lptintr
device mse0 at isa? port 0x23c tty irq 5 vector mseintr
device psm0 at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr
+# Options for psm:
+options PSM_NO_RESET #don't reset mouse hardware (some laptops)
+
device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr
# Options for sio:
diff --git a/sys/i386/conf/NOTES b/sys/i386/conf/NOTES
index b233893..27f4ffa 100644
--- a/sys/i386/conf/NOTES
+++ b/sys/i386/conf/NOTES
@@ -2,7 +2,7 @@
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
-# $Id: LINT,v 1.183 1995/05/27 04:32:12 davidg Exp $
+# $Id: LINT,v 1.184 1995/05/28 13:24:16 rgrimes Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
@@ -525,6 +525,9 @@ options FDSEEKWAIT="16"
device lpt0 at isa? port "IO_LPT3" tty irq 7 vector lptintr
device mse0 at isa? port 0x23c tty irq 5 vector mseintr
device psm0 at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr
+# Options for psm:
+options PSM_NO_RESET #don't reset mouse hardware (some laptops)
+
device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr
# Options for sio:
diff --git a/sys/i386/isa/psm.c b/sys/i386/isa/psm.c
index 2026a45..a4fb84e 100644
--- a/sys/i386/isa/psm.c
+++ b/sys/i386/isa/psm.c
@@ -150,8 +150,10 @@ int psmprobe(struct isa_device *dvp)
ioport=dvp->id_iobase;
unit=dvp->id_unit;
+#ifndef PSM_NO_RESET
psm_write_dev(ioport,0xff); /* Reset aux device */
psm_poll_status();
+#endif
outb(ioport+CNTRL,0xa9);
psm_poll_status();
outb(ioport+CNTRL,0xaa);
OpenPOWER on IntegriCloud