|
MentOS
0.8.0
The Mentoring Operating System
|
Driver for PS2 Mouses. More...
Macros | |
| #define | __DEBUG_HEADER__ "[MOUSE ]" |
| Change header. | |
| #define | __DEBUG_LEVEL__ LOGLEVEL_NOTICE |
| Set log level. | |
| #define | MOUSE_ENABLE_PACKET 0xF4 |
| The mouse starts sending automatic packets. | |
| #define | MOUSE_DISABLE_PACKET 0xF5 |
| The mouse stops sending automatic packets. | |
| #define | MOUSE_USE_DEFAULT_SETTINGS 0xF6 |
| Disables streaming, sets the packet rate to 100 per second, and resolution to 4 pixels per mm. | |
Functions | |
| static void | __mouse_waitcmd (unsigned char type) |
| Mouse wait for a command. More... | |
| static void | __mouse_write (unsigned char data) |
| Send data to mouse. More... | |
| static unsigned char | __mouse_read (void) |
| Read data from mouse. More... | |
| static void | __mouse_isr (pt_regs *f) |
| The interrupt service routine of the mouse. More... | |
| static void | __mouse_enable (void) |
| Enable the mouse driver. | |
| static void | __mouse_disable (void) |
| Disable the mouse driver. | |
| int | mouse_initialize (void) |
| Initializes the mouse. More... | |
| int | mouse_finalize (void) |
| De-initializes the mouse. More... | |
Variables | |
| static uint8_t | mouse_cycle = 0 |
| Mouse ISR cycle. | |
| static int8_t | mouse_bytes [3] |
| Mouse communication data. | |
| static int32_t | mouse_x = (800 / 2) |
| Mouse x position. | |
| static int32_t | mouse_y = (600 / 2) |
| Mouse y position. | |
Driver for PS2 Mouses.