Return to i8042reg.h CVS log | Up to [local] / sys / dev / ic |
File: [local] / sys / dev / ic / i8042reg.h (download)
Revision 1.1.1.1 (vendor branch), Tue Mar 4 16:10:37 2008 UTC (16 years, 6 months ago) by nbrk
Import of OpenBSD 4.2 release kernel tree with initial code to support Jornada 720/728, StrongARM 1110-based handheld PC. At this point kernel roots on NFS and boots into vfs_mountroot() and traps. What is supported: - glass console, Jornada framebuffer (jfb) works in 16bpp direct color mode (needs some palette tweaks for non black/white/blue colors, i think) - saic, SA11x0 interrupt controller (needs cleanup) - sacom, SA11x0 UART (supported only as boot console for now) - SA11x0 GPIO controller fully supported (but can't handle multiple interrupt handlers on one gpio pin) - sassp, SSP port on SA11x0 that attaches spibus - Jornada microcontroller (jmcu) to control kbd, battery, etc throught the SPI bus (wskbd attaches on jmcu, but not tested) - tod functions seem work - initial code for SA-1111 (chip companion) : this is TODO Next important steps, i think: - gpio and intc on sa1111 - pcmcia support for sa11x0 (and sa1111 help logic) - REAL root on nfs when we have PCMCIA support (we may use any of supported pccard NICs) - root on wd0! (using already supported PCMCIA-ATA) |
/* $OpenBSD: i8042reg.h,v 1.5 2001/08/18 15:30:39 mickey Exp $ */ /* $NetBSD: i8042reg.h,v 1.7 1998/01/18 14:41:37 drochner Exp $ */ #define KBSTATP 4 /* 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 4 /* kbd controller port (O) */ #define KBC_RAMREAD 0x20 /* read from RAM */ #define KBC_RAMWRITE 0x60 /* write to RAM */ #define KBC_AUXDISABLE 0xa7 /* disable auxiliary port */ #define KBC_AUXENABLE 0xa8 /* enable auxiliary port */ #define KBC_AUXTEST 0xa9 /* test auxiliary port */ #define KBC_CMDWOUT 0xd1 /* write output port */ #define KBC_KBDECHO 0xd2 /* echo to keyboard port */ #define KBC_AUXECHO 0xd3 /* echo to auxiliary port */ #define KBC_AUXWRITE 0xd4 /* write to auxiliary port */ #define KBC_SELFTEST 0xaa /* start self-test */ #define KBC_KBDTEST 0xab /* test keyboard port */ #define KBC_KBDDISABLE 0xad /* disable keyboard port */ #define KBC_KBDENABLE 0xae /* enable keyboard port */ #define KBC_PULSE0 0xfe /* pulse output bit 0 */ #define KBC_PULSE1 0xfd /* pulse output bit 1 */ #define KBC_PULSE2 0xfb /* pulse output bit 2 */ #define KBC_PULSE3 0xf7 /* pulse output bit 3 */ #define KBDATAP 0 /* kbd data port (I) */ #define KBOUTP 0 /* kbd data port (O) */ #define K_RDCMDBYTE 0x20 #define K_LDCMDBYTE 0x60 #define KC8_TRANS 0x40 /* convert to old scan codes */ #define KC8_MDISABLE 0x20 /* disable mouse */ #define KC8_KDISABLE 0x10 /* disable keyboard */ #define KC8_IGNSEC 0x08 /* ignore security lock */ #define KC8_CPU 0x04 /* exit from protected mode reset */ #define KC8_MENABLE 0x02 /* enable mouse interrupt */ #define KC8_KENABLE 0x01 /* enable keyboard interrupt */ #define CMDBYTE (KC8_TRANS|KC8_CPU|KC8_MENABLE|KC8_KENABLE)