|
PatchworkOS
3984a1d
A non-POSIX operating system.
|
Go to the source code of this file.
Data Structures | |
| struct | ps2_mouse_packet_t |
| PS/2 mouse packet structure. More... | |
| struct | ps2_mouse_t |
| PS/2 mouse private data. More... | |
Enumerations | |
| enum | ps2_mouse_packet_flags_t { PS2_PACKET_BUTTON_LEFT = (1 << 0) , PS2_PACKET_BUTTON_RIGHT = (1 << 1) , PS2_PACKET_BUTTON_MIDDLE = (1 << 2) , PS2_PACKET_ALWAYS_ONE = (1 << 3) , PS2_PACKET_X_SIGN = (1 << 4) , PS2_PACKET_Y_SIGN = (1 << 5) , PS2_PACKET_X_OVERFLOW = (1 << 6) , PS2_PACKET_Y_OVERFLOW = (1 << 7) } |
| PS/2 mouse packet flags. More... | |
| enum | ps2_mouse_packet_index_t { PS2_PACKET_FLAGS = 0 , PS2_PACKET_DELTA_X = 1 , PS2_PACKET_DELTA_Y = 2 } |
| PS/2 mouse packet index. More... | |
Functions | |
| uint64_t | ps2_mouse_init (ps2_device_info_t *info) |
| Initialize a PS/2 mouse device. | |
| uint64_t | ps2_mouse_irq_register (ps2_device_info_t *info) |
| Register the IRQ handler for a PS/2 mouse device. | |
| void | ps2_mouse_deinit (ps2_device_info_t *info) |
| Deinitialize a PS/2 mouse device. | |