2 * COPYRIGHT: GPL - See COPYING in the top level directory
3 * PROJECT: ReactOS Virtual DOS Machine
5 * PURPOSE: PS/2 controller emulation (header file)
6 * PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
12 /* INCLUDES *******************************************************************/
16 /* DEFINES ********************************************************************/
18 #define KEYBOARD_BUFFER_SIZE 32
19 #define PS2_DATA_PORT 0x60
20 #define PS2_CONTROL_PORT 0x64
21 #define PS2_DEFAULT_CONFIG 0x05
22 #define KEYBOARD_ACK 0xFA
23 #define KEYBOARD_RESEND 0xFE
25 /* FUNCTIONS ******************************************************************/
27 BYTE
KeyboardReadStatus();
28 VOID
KeyboardWriteCommand(BYTE Command
);
29 BYTE
KeyboardReadData();
30 VOID
KeyboardWriteData(BYTE Data
);
31 VOID
CheckForInputEvents();