[NTVDM]
[reactos.git] / reactos / subsystems / mvdm / ntvdm / hardware / ps2.h
1 /*
2 * COPYRIGHT: GPL - See COPYING in the top level directory
3 * PROJECT: ReactOS Virtual DOS Machine
4 * FILE: ps2.h
5 * PURPOSE: PS/2 controller emulation
6 * PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
7 * Hermes Belusca-Maito (hermes.belusca@sfr.fr)
8 */
9
10 #ifndef _PS2_H_
11 #define _PS2_H_
12
13 /* DEFINES ********************************************************************/
14
15 #define PS2_DATA_PORT 0x60
16 #define PS2_CONTROL_PORT 0x64
17
18 typedef VOID (WINAPI *PS2_DEVICE_CMDPROC)(LPVOID Param, BYTE Command);
19
20 /* FUNCTIONS ******************************************************************/
21
22 VOID PS2SetDeviceCmdProc(BYTE PS2Port, LPVOID Param, PS2_DEVICE_CMDPROC DeviceCommand);
23
24 BOOLEAN PS2QueuePush(BYTE PS2Port, BYTE Data);
25 BOOLEAN PS2PortQueueRead(BYTE PS2Port);
26
27 BOOLEAN PS2Initialize(VOID);
28 VOID PS2Cleanup(VOID);
29
30 #endif // _PS2_H_
31
32 /* EOF */