Add code to set the translation table number, but disabled for now.

This commit is contained in:
mycroft 1994-03-02 04:38:26 +00:00
parent 2542f2a4a4
commit 6ba1208b1d
2 changed files with 10 additions and 4 deletions

View File

@ -1,7 +1,7 @@
/*
* Keyboard definitions
*
* $Id: kbdreg.h,v 1.3 1993/10/17 14:04:15 mycroft Exp $
* $Id: kbdreg.h,v 1.4 1994/03/02 04:38:28 mycroft Exp $
*/
#include <i386/isa/ic/i8042.h>
@ -13,6 +13,7 @@
#define KBC_DISABLE 0xF5 /* as per KBC_SETDEFAULT, but also disable key scanning */
#define KBC_ENABLE 0xF4 /* enable key scanning */
#define KBC_TYPEMATIC 0xF3 /* set typematic rate and delay */
#define KBC_SETTABLE 0xF0 /* set scancode translation table */
#define KBC_MODEIND 0xED /* set mode indicators (i.e. LEDs) */
#define KBC_ECHO 0xEE /* request an echo from the keyboard */

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)pccons.c 5.11 (Berkeley) 5/21/91
* $Id: pccons.c,v 1.51 1994/03/02 00:57:35 mycroft Exp $
* $Id: pccons.c,v 1.52 1994/03/02 04:38:26 mycroft Exp $
*/
/*
@ -68,7 +68,6 @@
#include <i386/isa/isa_device.h>
#include <i386/isa/icu.h>
#include <i386/isa/isa.h>
#include <i386/isa/ic/i8042.h>
#include <i386/isa/kbdreg.h>
#define XFREE86_BUG_COMPAT
@ -334,10 +333,16 @@ pcprobe(dev)
printf("pcprobe: reset error 2\n");
goto lose;
}
if (!kbd_cmd(KBC_ENABLE, 1)) {
/* XXX We need the old XT scancodes. */
if (!kbd_cmd(KBC_SETTABLE, 1) || !kbd_cmd(0, 1)) {
printf("pcprobe: reset error 3\n");
goto lose;
}
/* Just to be safe. */
if (!kbd_cmd(KBC_ENABLE, 1)) {
printf("pcprobe: reset error 4\n");
goto lose;
}
lose:
/*