PatchworkOS
Loading...
Searching...
No Matches
ps2_mouse.h File Reference
#include <kernel/drivers/ps2/ps2.h>

Go to the source code of this file.

Data Structures

struct  ps2_mouse_packet_t
 PS/2 mouse packet structure. More...
 
struct  ps2_mouse_irq_context_t
 PS/2 mouse IRQ context. 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.