d62387cff59f9af2776cc8bb1984f48e512d8a3e
[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 /* INCLUDES *******************************************************************/
14
15 #include "ntvdm.h"
16
17 /* DEFINES ********************************************************************/
18
19 #define PS2_DATA_PORT 0x60
20 #define PS2_CONTROL_PORT 0x64
21
22 typedef VOID (WINAPI *PS2_DEVICE_CMDPROC)(LPVOID Param, BYTE Command);
23
24 /* FUNCTIONS ******************************************************************/
25
26 VOID PS2SetDeviceCmdProc(BYTE PS2Port, LPVOID Param, PS2_DEVICE_CMDPROC DeviceCommand);
27
28 BOOLEAN PS2QueuePush(BYTE PS2Port, BYTE Data);
29 BOOLEAN PS2PortQueueRead(BYTE PS2Port);
30
31 BOOLEAN PS2Initialize(VOID);
32 VOID PS2Cleanup(VOID);
33
34 #endif // _PS2_H_
35
36 /* EOF */