diff options
author | joerg <joerg@FreeBSD.org> | 1997-03-07 08:53:16 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1997-03-07 08:53:16 +0000 |
commit | c8c614fad580e894985072410cb8cc3ffbd67c5c (patch) | |
tree | 7c9beee23ff499e366eac28ae5d6f7f12b8ffcf7 /sys/i386/isa/pcvt/pcvt_drv.c | |
parent | 0385b16188212664b639b5ead37c9f207445986d (diff) | |
download | FreeBSD-src-c8c614fad580e894985072410cb8cc3ffbd67c5c.zip FreeBSD-src-c8c614fad580e894985072410cb8cc3ffbd67c5c.tar.gz |
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)
Diffstat (limited to 'sys/i386/isa/pcvt/pcvt_drv.c')
-rw-r--r-- | sys/i386/isa/pcvt/pcvt_drv.c | 8 |
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 13d6ede..e5abe05 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_ */ /* |