ReactOS 0.4.16-dev-336-gb667d82
|
#include <ntoskrnl.h>
Go to the source code of this file.
Macros | |
#define | KBD_STATUS_REG 0x64 |
#define | KBD_CNTL_REG 0x64 |
#define | KBD_DATA_REG 0x60 |
#define | KBD_STAT_OBF 0x01 |
#define | KBD_STAT_IBF 0x02 |
#define | CTRL_WRITE_MOUSE 0xD4 |
#define | MOU_ENAB 0xF4 |
#define | MOU_DISAB 0xF5 |
#define | MOUSE_ACK 0xFA |
#define | KBD_DISABLE_MOUSE 0xA7 |
#define | KBD_ENABLE_MOUSE 0xA8 |
#define | kbd_write_command(cmd) WRITE_PORT_UCHAR((PUCHAR)KBD_CNTL_REG,cmd) |
#define | kbd_write_data(cmd) WRITE_PORT_UCHAR((PUCHAR)KBD_DATA_REG,cmd) |
#define | kbd_read_input() READ_PORT_UCHAR((PUCHAR)KBD_DATA_REG) |
#define | kbd_read_status() READ_PORT_UCHAR((PUCHAR)KBD_STATUS_REG) |
Typedefs | |
typedef UCHAR | byte_t |
Functions | |
static VOID | KbdSendCommandToMouse (UCHAR Command) |
VOID | KbdEnableMouse (VOID) |
VOID | KbdDisableMouse (VOID) |
CHAR | KdbpTryGetCharKeyboard (PULONG ScanCode, ULONG Retry) |
Variables | |
static unsigned char | keyb_layout [2][128] |
#define CTRL_WRITE_MOUSE 0xD4 |
Definition at line 25 of file kdps2kbd.c.
#define KBD_CNTL_REG 0x64 |
Definition at line 19 of file kdps2kbd.c.
#define KBD_DATA_REG 0x60 |
Definition at line 20 of file kdps2kbd.c.
#define KBD_DISABLE_MOUSE 0xA7 |
Definition at line 30 of file kdps2kbd.c.
#define KBD_ENABLE_MOUSE 0xA8 |
Definition at line 31 of file kdps2kbd.c.
#define kbd_read_input | ( | ) | READ_PORT_UCHAR((PUCHAR)KBD_DATA_REG) |
Definition at line 35 of file kdps2kbd.c.
#define kbd_read_status | ( | ) | READ_PORT_UCHAR((PUCHAR)KBD_STATUS_REG) |
Definition at line 36 of file kdps2kbd.c.
#define KBD_STAT_IBF 0x02 |
Definition at line 23 of file kdps2kbd.c.
#define KBD_STAT_OBF 0x01 |
Definition at line 22 of file kdps2kbd.c.
#define KBD_STATUS_REG 0x64 |
Definition at line 18 of file kdps2kbd.c.
#define kbd_write_command | ( | cmd | ) | WRITE_PORT_UCHAR((PUCHAR)KBD_CNTL_REG,cmd) |
Definition at line 33 of file kdps2kbd.c.
#define kbd_write_data | ( | cmd | ) | WRITE_PORT_UCHAR((PUCHAR)KBD_DATA_REG,cmd) |
Definition at line 34 of file kdps2kbd.c.
#define MOU_DISAB 0xF5 |
Definition at line 27 of file kdps2kbd.c.
#define MOU_ENAB 0xF4 |
Definition at line 26 of file kdps2kbd.c.
#define MOUSE_ACK 0xFA |
Definition at line 28 of file kdps2kbd.c.
Definition at line 57 of file kdps2kbd.c.
Definition at line 98 of file kdps2kbd.c.
Referenced by KdbpInternalEnter(), and KdReceivePacket().
Definition at line 93 of file kdps2kbd.c.
Referenced by KdbpInternalEnter(), and KdReceivePacket().
Definition at line 62 of file kdps2kbd.c.
Referenced by KbdDisableMouse(), and KbdEnableMouse().
Definition at line 104 of file kdps2kbd.c.
Referenced by KdpFlushTerminalInput(), and KdpReadTermKey().
Definition at line 38 of file kdps2kbd.c.
Referenced by KdbpTryGetCharKeyboard().