ReactOS 0.4.16-dev-297-gc569aee
|
#include "ntvdm.h"
#include <debug.h>
#include "emulator.h"
#include "ps2.h"
#include "memory.h"
#include "io.h"
#include "pic.h"
#include "clock.h"
Go to the source code of this file.
Classes | |
struct | _PS2_PORT |
Macros | |
#define | NDEBUG |
#define | BUFFER_SIZE 32 |
#define | PS2_PORTS 2 |
#define | ControllerConfig Memory[0] |
Typedefs | |
typedef struct _PS2_PORT | PS2_PORT |
typedef struct _PS2_PORT * | PPS2_PORT |
Functions | |
static VOID | PS2SendCommand (BYTE PS2Port, BYTE Command) |
static BYTE WINAPI | PS2ReadControl (USHORT Port) |
static BYTE WINAPI | PS2ReadData (USHORT Port) |
static VOID WINAPI | PS2WriteControl (USHORT Port, BYTE Data) |
static VOID WINAPI | PS2WriteData (USHORT Port, BYTE Data) |
static VOID FASTCALL | GeneratePS2Irq (ULONGLONG ElapsedTime) |
BOOLEAN | PS2PortQueueRead (BYTE PS2Port) |
VOID | PS2SetDeviceCmdProc (BYTE PS2Port, LPVOID Param, PS2_DEVICE_CMDPROC DeviceCommand) |
BOOLEAN | PS2QueuePush (BYTE PS2Port, BYTE Data) |
BOOLEAN | PS2Initialize (VOID) |
VOID | PS2Cleanup (VOID) |
Variables | |
static PS2_PORT | Ports [PS2_PORTS] |
static BYTE | Memory [0x20] |
static BYTE | StatusRegister = 0x00 |
static BYTE | OutputBuffer = 0x00 |
static BYTE | ControllerCommand = 0x00 |
static PHARDWARE_TIMER | IrqTimer = NULL |
Definition at line 392 of file ps2.c.
Referenced by PS2Initialize().
Definition at line 520 of file ps2.c.
Referenced by EmulatorInitialize().
Definition at line 415 of file ps2.c.
Referenced by DisableMouseInt(), DosMouseIrq(), EnableMouseInt(), GeneratePS2Irq(), ReadMouseData(), and SendMouseCommand().
Definition at line 486 of file ps2.c.
Referenced by KeyboardCommand(), KeyboardEventHandler(), MouseCommand(), MouseDispatchPacket(), and PS2WriteData().
Definition at line 90 of file ps2.c.
Referenced by PS2Initialize().
Definition at line 109 of file ps2.c.
Referenced by PS2Initialize().
Definition at line 67 of file ps2.c.
Referenced by PS2WriteData().
VOID PS2SetDeviceCmdProc | ( | BYTE | PS2Port, |
LPVOID | Param, | ||
PS2_DEVICE_CMDPROC | DeviceCommand | ||
) |
Definition at line 130 of file ps2.c.
Referenced by PS2Initialize().
Definition at line 278 of file ps2.c.
Referenced by PS2Initialize().
|
static |
Definition at line 61 of file ps2.c.
Referenced by PS2WriteControl(), and PS2WriteData().
|
static |
Definition at line 63 of file ps2.c.
Referenced by PS2Cleanup(), PS2Initialize(), and PS2QueuePush().
|
static |
Definition at line 59 of file ps2.c.
Referenced by PS2ReadData().
Definition at line 52 of file ps2.c.
Referenced by PS2Cleanup(), PS2Initialize(), PS2PortQueueRead(), PS2QueuePush(), PS2SendCommand(), PS2SetDeviceCmdProc(), PS2WriteControl(), and PS2WriteData().
|
static |
Definition at line 57 of file ps2.c.
Referenced by BusLogic_Command(), BusLogic_HardwareResetHostAdapter(), BusLogic_ProbeHostAdapter(), PS2PortQueueRead(), PS2ReadControl(), PS2ReadData(), PS2WriteControl(), PS2WriteData(), and UhciTakeControlHC().