mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
Kernel: Allow boot without mouse attached by checking for presence
This commit is contained in:
parent
8faeead753
commit
e60577aab6
2 changed files with 53 additions and 12 deletions
|
@ -27,6 +27,8 @@ private:
|
|||
virtual const char* class_name() const override { return "PS2MouseDevice"; }
|
||||
|
||||
void initialize();
|
||||
void check_device_presence();
|
||||
void initialize_device();
|
||||
void prepare_for_input();
|
||||
void prepare_for_output();
|
||||
void mouse_write(u8);
|
||||
|
@ -36,6 +38,7 @@ private:
|
|||
void parse_data_packet();
|
||||
void expect_ack();
|
||||
|
||||
bool m_device_present { false };
|
||||
CircularQueue<MousePacket, 100> m_queue;
|
||||
u8 m_data_state { 0 };
|
||||
u8 m_data[4];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue