diff options
| author | Javier <dev.git@javispedro.com> | 2026-08-30 02:21:09 +0200 |
|---|---|---|
| committer | Javier <dev.git@javispedro.com> | 2026-08-30 02:21:09 +0200 |
| commit | 1b0344660de2832b472b0a413c50ff7f111a9293 (patch) | |
| tree | 5ae7303643d6c9187da6366cf30a4f6a4c73d54b /int15ps2.h | |
| parent | 003a26a76982f512e2f3a1108e46b88aa29ab306 (diff) | |
| download | vbados-1b0344660de2832b472b0a413c50ff7f111a9293.tar.gz vbados-1b0344660de2832b472b0a413c50ff7f111a9293.zip | |
first steps towards (optional) serial mouse support
Diffstat (limited to 'int15ps2.h')
| -rw-r--r-- | int15ps2.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -23,6 +23,7 @@ #include <stdbool.h> #include <stdint.h> #include "utils.h" +#include "bda.h" /** Standard PS/2 mouse IRQ. At least on VirtualBox. */ #define PS2_MOUSE_IRQ 12 @@ -95,6 +96,12 @@ enum ps2m_sample_rate { /** Invoked by the BIOS when there is a mouse event. */ typedef void (__far * LPFN_PS2CALLBACK)(); +static bool ps2m_installed() +{ + uint16_t equipment = bda_get_equipment(); + return equipment & (1 << 2); +} + static ps2m_err ps2m_init(uint8_t packet_size); #pragma aux ps2m_init = \ "stc" /* If nothing happens, assume failure */ \ |
