00001 /* $NetBSD: pckbdreg.h,v 1.2 1998/04/07 13:43:16 hannken Exp $ */ 00002 00003 /* 00004 * Keyboard definitions 00005 */ 00006 00007 /* keyboard commands */ 00008 #define KBC_RESET 0xFF /* reset the keyboard */ 00009 #define KBC_RESEND 0xFE /* request the keyboard resend the last byte */ 00010 #define KBC_SETDEFAULT 0xF6 /* resets keyboard to its power-on defaults */ 00011 #define KBC_DISABLE 0xF5 /* as per KBC_SETDEFAULT, but also disable key scanning */ 00012 #define KBC_ENABLE 0xF4 /* enable key scanning */ 00013 #define KBC_TYPEMATIC 0xF3 /* set typematic rate and delay */ 00014 #define KBC_SETTABLE 0xF0 /* set scancode translation table */ 00015 #define KBC_MODEIND 0xED /* set mode indicators (i.e. LEDs) */ 00016 #define KBC_ECHO 0xEE /* request an echo from the keyboard */ 00017 00018 /* keyboard responses */ 00019 #define KBR_EXTENDED0 0xE0 /* extended key sequence */ 00020 #define KBR_EXTENDED1 0xE1 /* extended key sequence */ 00021 #define KBR_RESEND 0xFE /* needs resend of command */ 00022 #define KBR_ACK 0xFA /* received a valid command */ 00023 #define KBR_OVERRUN 0x00 /* flooded */ 00024 #define KBR_FAILURE 0xFD /* diagnosic failure */ 00025 #define KBR_BREAK 0xF0 /* break code prefix - sent on key release */ 00026 #define KBR_RSTDONE 0xAA /* reset complete */ 00027 #define KBR_ECHO 0xEE /* echo response */ 00028 00029 #define IO_KBD 0x060 /* 8042 Keyboard */ 00030 #define IO_KBD_CMD 0x064 /* 8042 Keyboard Command Register */