aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/isa/pcvt
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1997-03-07 08:53:16 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1997-03-07 08:53:16 +0000
commitf9ba24beedc58c90b4a3d947c5b4abc099f09bde (patch)
treea4ab905d4fa5b5d2befdc820935804dce2c48be4 /sys/i386/isa/pcvt
parentc75354732f4b45e63da4021014809cf684e40b15 (diff)
downloadsrc-f9ba24beedc58c90b4a3d947c5b4abc099f09bde.tar.gz
src-f9ba24beedc58c90b4a3d947c5b4abc099f09bde.zip
Fix the new (kbdio) keyboard layer to correctly work if PCVT_SCANSET == 2
even early in the boot process (boot -c or -d). Submitted by: yokota@zodiac.mech.utsunomiya-u.ac.jp (Kazutaka YOKOTA)
Notes
Notes: svn path=/head/; revision=23480
Diffstat (limited to 'sys/i386/isa/pcvt')
-rw-r--r--sys/i386/isa/pcvt/pcvt_drv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c
index 13d6ede6ee85..e5abe05870f5 100644
--- a/sys/i386/isa/pcvt/pcvt_drv.c
+++ b/sys/i386/isa/pcvt/pcvt_drv.c
@@ -1092,6 +1092,14 @@ pccnprobe(struct consdev *cp)
* The system clock has not been calibrated...
*/
reset_keyboard = 0;
+#if PCVT_SCANSET == 2
+ /*
+ * Turn off scancode translation early so that UserConfig
+ * and DDB can read the keyboard.
+ */
+ empty_both_buffers(kbdc, 10);
+ set_controller_command_byte(kbdc, KBD_TRANSLATION, 0);
+#endif /* PCVT_SCANSET == 2 */
#endif /* _I386_ISA_KBDIO_H_ */
/*