mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 21:04:26 +00:00
![Aleksandar Andrejevic](/assets/img/avatar_default.png)
Separate external interrupts from interrupt signals (which are interrupts whose number is not known until they can be serviced, just like hardware interrupts on a real CPU). [NTVDM] Improve the PIC emulation code (IRQ priorities, etc...). Instead of checking for interrupts in the main loop, move the PS/2 input parsing to a different thread. Improve BIOS keyboard IRQ handling. svn path=/branches/ntvdm/; revision=60761
36 lines
970 B
C
36 lines
970 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);
|
|
DWORD WINAPI InputThreadProc(LPVOID Parameter);
|
|
|
|
#endif // _PS2_H_
|
|
|
|
/* EOF */
|