Home | History | Annotate | Line # | Download | only in ic
i8042reg.h revision 1.7.26.1
      1  1.7.26.1   nathanw /*	$NetBSD: i8042reg.h,v 1.7.26.1 2002/02/28 04:13:22 nathanw Exp $	*/
      2       1.2       cgd 
      3       1.7  drochner #define	KBSTATP		4	/* kbd controller status port (I) */
      4       1.1       cgd #define	 KBS_DIB	0x01	/* kbd data in buffer */
      5       1.1       cgd #define	 KBS_IBF	0x02	/* kbd input buffer low */
      6  1.7.26.1   nathanw #define	 KBS_WARM	0x04	/* kbd system flag */
      7       1.1       cgd #define	 KBS_OCMD	0x08	/* kbd output buffer has command */
      8       1.1       cgd #define	 KBS_NOSEC	0x10	/* kbd security lock not engaged */
      9       1.1       cgd #define	 KBS_TERR	0x20	/* kbd transmission error */
     10       1.1       cgd #define	 KBS_RERR	0x40	/* kbd receive error */
     11       1.1       cgd #define	 KBS_PERR	0x80	/* kbd parity error */
     12       1.1       cgd 
     13       1.7  drochner #define	KBCMDP		4	/* kbd controller port (O) */
     14       1.6   mycroft #define	 KBC_RAMREAD	0x20	/* read from RAM */
     15       1.6   mycroft #define	 KBC_RAMWRITE	0x60	/* write to RAM */
     16       1.6   mycroft #define	 KBC_AUXDISABLE	0xa7	/* disable auxiliary port */
     17       1.6   mycroft #define	 KBC_AUXENABLE	0xa8	/* enable auxiliary port */
     18       1.6   mycroft #define	 KBC_AUXTEST	0xa9	/* test auxiliary port */
     19       1.6   mycroft #define	 KBC_KBDECHO	0xd2	/* echo to keyboard port */
     20       1.6   mycroft #define	 KBC_AUXECHO	0xd3	/* echo to auxiliary port */
     21       1.6   mycroft #define	 KBC_AUXWRITE	0xd4	/* write to auxiliary port */
     22       1.6   mycroft #define	 KBC_SELFTEST	0xaa	/* start self-test */
     23       1.6   mycroft #define	 KBC_KBDTEST	0xab	/* test keyboard port */
     24       1.6   mycroft #define	 KBC_KBDDISABLE	0xad	/* disable keyboard port */
     25       1.6   mycroft #define	 KBC_KBDENABLE	0xae	/* enable keyboard port */
     26       1.6   mycroft #define	 KBC_PULSE0	0xfe	/* pulse output bit 0 */
     27       1.6   mycroft #define	 KBC_PULSE1	0xfd	/* pulse output bit 1 */
     28       1.6   mycroft #define	 KBC_PULSE2	0xfb	/* pulse output bit 2 */
     29       1.6   mycroft #define	 KBC_PULSE3	0xf7	/* pulse output bit 3 */
     30       1.6   mycroft 
     31       1.7  drochner #define	KBDATAP		0	/* kbd data port (I) */
     32       1.7  drochner #define	KBOUTP		0	/* kbd data port (O) */
     33       1.1       cgd 
     34       1.4   mycroft #define	K_RDCMDBYTE	0x20
     35       1.1       cgd #define	K_LDCMDBYTE	0x60
     36       1.1       cgd 
     37       1.1       cgd #define	KC8_TRANS	0x40	/* convert to old scan codes */
     38       1.4   mycroft #define	KC8_MDISABLE	0x20	/* disable mouse */
     39       1.4   mycroft #define	KC8_KDISABLE	0x10	/* disable keyboard */
     40       1.1       cgd #define	KC8_IGNSEC	0x08	/* ignore security lock */
     41       1.1       cgd #define	KC8_CPU		0x04	/* exit from protected mode reset */
     42       1.4   mycroft #define	KC8_MENABLE	0x02	/* enable mouse interrupt */
     43       1.4   mycroft #define	KC8_KENABLE	0x01	/* enable keyboard interrupt */
     44       1.4   mycroft #define	CMDBYTE		(KC8_TRANS|KC8_CPU|KC8_MENABLE|KC8_KENABLE)
     45