diff options
author | Javier <dev.git@javispedro.com> | 2022-04-05 22:24:47 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2022-04-05 22:24:47 +0200 |
commit | 51cdb6b523be973e802cc940c6ac54cc8a50b802 (patch) | |
tree | 85ad0eb5dc50ab3c4d635c6e70a930ce4589f8bc /ps2.h | |
parent | c028004510a24480f93e57ccc6c7b64b79143aa4 (diff) | |
download | vbados-51cdb6b523be973e802cc940c6ac54cc8a50b802.tar.gz vbados-51cdb6b523be973e802cc940c6ac54cc8a50b802.zip |
add vmware support, debug logging to serial port, and fix ps2 routine clobbering registers
Diffstat (limited to 'ps2.h')
-rw-r--r-- | ps2.h | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -80,12 +80,8 @@ enum ps2m_sample_rate { PS2M_SAMPLE_RATE_200 = 6 }; -#pragma aux PS2_CB far loadds parm reverse caller [] -// TODO: ax and es look not be preserved with this. VBox BIOS already preserves them though, as well as 32-bit registers - -/** Invoked by the BIOS when there is a mouse event. - * @param status combination of PS2M_STATUS_* flags */ -typedef void (__far * LPFN_PS2CALLBACK)(uint8_t status, uint8_t x, uint8_t y, uint8_t z); +/** Invoked by the BIOS when there is a mouse event. */ +typedef void (__far * LPFN_PS2CALLBACK)(); static ps2m_err ps2m_init(uint8_t packet_size); #pragma aux ps2m_init = \ |