MentOS
0.8.0
The Mentoring Operating System
|
PS/2 drivers. More...
Go to the source code of this file.
Functions | |
int | ps2_initialize (void) |
Initializes ps2 devices. More... | |
void | ps2_write_data (unsigned char data) |
Writes a byte of data to the PS/2 device. More... | |
void | ps2_write_command (unsigned char command) |
Sends a command to the PS/2 controller. More... | |
unsigned char | ps2_read_data (void) |
Reads a byte of data from the PS/2 device. More... | |
PS/2 drivers.
int ps2_initialize | ( | void | ) |
Initializes ps2 devices.
unsigned char ps2_read_data | ( | void | ) |
Reads a byte of data from the PS/2 device.
This function waits until data is available in the output buffer of the PS/2 controller. Once data is available, it reads and returns the byte from the PS/2 data register.
void ps2_write_command | ( | unsigned char | command | ) |
Sends a command to the PS/2 controller.
This function waits until the input buffer of the PS/2 controller is empty before writing the specified command to the PS/2 command register.
command | The command byte to be sent to the PS/2 controller. |
void ps2_write_data | ( | unsigned char | data | ) |
Writes a byte of data to the PS/2 device.
This function waits until the input buffer of the PS/2 controller is empty before sending the specified data byte to the PS/2 data register.
data | The byte of data to be sent to the PS/2 device. |