NetBSD/sys/dev/ic/i8042reg.h

30 lines
1.1 KiB
C
Raw Normal View History

/*
1994-03-02 11:02:27 +03:00
* $Id: i8042reg.h,v 1.4 1994/03/02 08:02:27 mycroft Exp $
*/
1993-03-21 12:45:37 +03:00
#define KBSTATP 0x64 /* kbd controller status port (I) */
#define KBS_DIB 0x01 /* kbd data in buffer */
#define KBS_IBF 0x02 /* kbd input buffer low */
#define KBS_WARM 0x04 /* kbd input buffer low */
#define KBS_OCMD 0x08 /* kbd output buffer has command */
#define KBS_NOSEC 0x10 /* kbd security lock not engaged */
#define KBS_TERR 0x20 /* kbd transmission error */
#define KBS_RERR 0x40 /* kbd receive error */
#define KBS_PERR 0x80 /* kbd parity error */
#define KBCMDP 0x64 /* kbd controller port (O) */
#define KBDATAP 0x60 /* kbd data port (I) */
#define KBOUTP 0x60 /* kbd data port (O) */
1994-03-02 11:02:27 +03:00
#define K_RDCMDBYTE 0x20
1993-03-21 12:45:37 +03:00
#define K_LDCMDBYTE 0x60
#define KC8_TRANS 0x40 /* convert to old scan codes */
1994-03-02 11:02:27 +03:00
#define KC8_MDISABLE 0x20 /* disable mouse */
#define KC8_KDISABLE 0x10 /* disable keyboard */
1993-03-21 12:45:37 +03:00
#define KC8_IGNSEC 0x08 /* ignore security lock */
#define KC8_CPU 0x04 /* exit from protected mode reset */
1994-03-02 11:02:27 +03:00
#define KC8_MENABLE 0x02 /* enable mouse interrupt */
#define KC8_KENABLE 0x01 /* enable keyboard interrupt */
#define CMDBYTE (KC8_TRANS|KC8_CPU|KC8_MENABLE|KC8_KENABLE)