MentOS  0.8.0
The Mentoring Operating System
Macros
PS/2 Controller Commands

Macros

#define PS2_CTRL_TEST_CONTROLLER   0xAA
 Command to test the PS/2 controller; returns 0x55 for pass, 0xFC for fail.
 
#define PS2_CTRL_P1_ENABLE   0xAE
 Command to enable the first PS/2 port; does not return a response.
 
#define PS2_CTRL_P1_DISABLE   0xAD
 Command to disable the first PS/2 port; does not return a response.
 
#define PS2_CTRL_P1_TEST   0xAB
 Command to test the first PS/2 port; returns status results.
 
#define PS2_CTRL_P2_ENABLE   0xA8
 Command to enable the second PS/2 port; does not return a response.
 
#define PS2_CTRL_P2_DISABLE   0xA7
 Command to disable the second PS/2 port; does not return a response.
 
#define PS2_CTRL_P2_TEST   0xA9
 Command to test the second PS/2 port; applicable only if both ports are supported.
 
#define PS2_CTRL_READ_OUTPUT_PORT   0xD0
 Reads the current state of the output port.
 
#define PS2_CTRL_WRITE_OUTPUT_PORT   0xD1
 Writes to the output port, controls system reset line and other signals.
 
#define PS2_CTRL_READ_RAM_BYTE_0   0x20
 Reads the configuration byte from PS/2 controller RAM.
 
#define PS2_CTRL_WRITE_RAM_BYTE_0   0x60
 Writes to the configuration byte in PS/2 controller RAM.
 
#define PS2_CTRL_P1_RESET   0xFE
 Resets the first PS/2 port.
 

Detailed Description