mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 10:30:59 +00:00
4fb7f6e1d7
- Move some PS/2 initialization from bios.c to ps2.c - NULLify interrupt entries which are in fact pointers to data tables. - Add a framework for adding I/O port handlers. svn path=/branches/ntvdm/; revision=61107
38 lines
994 B
C
38 lines
994 B
C
/*
|
|
* COPYRIGHT: GPL - See COPYING in the top level directory
|
|
* PROJECT: ReactOS Virtual DOS Machine
|
|
* FILE: ps2.h
|
|
* PURPOSE: PS/2 controller emulation (header file)
|
|
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
|
|
*/
|
|
|
|
#ifndef _PS2_H_
|
|
#define _PS2_H_
|
|
|
|
/* INCLUDES *******************************************************************/
|
|
|
|
#include "ntvdm.h"
|
|
|
|
/* DEFINES ********************************************************************/
|
|
|
|
#define KEYBOARD_BUFFER_SIZE 32
|
|
#define PS2_DATA_PORT 0x60
|
|
#define PS2_CONTROL_PORT 0x64
|
|
#define PS2_DEFAULT_CONFIG 0x05
|
|
#define KEYBOARD_ACK 0xFA
|
|
#define KEYBOARD_RESEND 0xFE
|
|
|
|
/* FUNCTIONS ******************************************************************/
|
|
|
|
BYTE KeyboardReadStatus();
|
|
//VOID KeyboardWriteCommand(BYTE Command);
|
|
BYTE KeyboardReadData();
|
|
//VOID KeyboardWriteData(BYTE Data);
|
|
|
|
BOOLEAN PS2Initialize(HANDLE ConsoleInput);
|
|
VOID PS2Cleanup(VOID);
|
|
|
|
#endif // _PS2_H_
|
|
|
|
/* EOF */
|