16#define PS2_DATA_PORT 0x60
17#define PS2_CONTROL_PORT 0x64
20#define PS2_STAT_OUT_BUF_FULL (1 << 0)
22#define PS2_STAT_SYSTEM (1 << 2)
23#define PS2_STAT_COMMAND (1 << 3)
24#define PS2_STAT_KBD_ENABLE (1 << 4)
25#define PS2_STAT_AUX_OUT_BUF_FULL (1 << 5)
26#define PS2_STAT_GEN_TIMEOUT (1 << 6)
27#define PS2_STAT_PARITY_ERROR (1 << 7)
30#define PS2_CONFIG_KBD_INT (1 << 0)
31#define PS2_CONFIG_AUX_INT (1 << 1)
32#define PS2_CONFIG_SYSTEM (1 << 2)
33#define PS2_CONFIG_NO_KEYLOCK (1 << 3)
34#define PS2_CONFIG_KBD_DISABLE (1 << 4)
35#define PS2_CONFIG_AUX_DISABLE (1 << 5)
39#define PS2_OUT_CPU_NO_RESET (1 << 0)
40#define PS2_OUT_A20_SET (1 << 1)
41#define PS2_OUT_AUX_DATA (1 << 2)
43#define PS2_OUT_IRQ01 (1 << 4)
44#define PS2_OUT_IRQ12 (1 << 5)
46#define PS2_OUT_KBD_DATA (1 << 7)
VOID PS2SetDeviceCmdProc(BYTE PS2Port, LPVOID Param, PS2_DEVICE_CMDPROC DeviceCommand)
BOOLEAN PS2PortQueueRead(BYTE PS2Port)
BOOLEAN PS2QueuePush(BYTE PS2Port, BYTE Data)
VOID(WINAPI * PS2_DEVICE_CMDPROC)(LPVOID Param, BYTE Command)
BOOLEAN PS2Initialize(VOID)