aboutsummaryrefslogtreecommitdiff
path: root/int15ps2.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-20 02:45:41 +0200
committerJavier <dev.git@javispedro.com>2022-04-20 02:45:41 +0200
commita2aaf8a11f318f4f1dda9c5f15cf2257a3c73f9a (patch)
treec4f13ff3834cd1057f458a314c6f01769d3aeef8 /int15ps2.h
parent83b640d102b22e543ff924c443e0d2c9ab33d2ed (diff)
downloadvbados-a2aaf8a11f318f4f1dda9c5f15cf2257a3c73f9a.tar.gz
vbados-a2aaf8a11f318f4f1dda9c5f15cf2257a3c73f9a.zip
add back support for using ps/2 bios with 3-byte packets
apparently some BIOSes and DOSBox don't support 1-byte streaming mode, and neither does win386 without a special vkd
Diffstat (limited to 'int15ps2.h')
-rw-r--r--int15ps2.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/int15ps2.h b/int15ps2.h
index 95bedf7..438dfd8 100644
--- a/int15ps2.h
+++ b/int15ps2.h
@@ -31,10 +31,10 @@
typedef uint8_t ps2m_err;
enum ps2m_errors {
PS2M_ERR_INVALID_FUNCTION = 1,
- PSM2_ERR_INVALID_INPUT = 2,
- PSM2_ERR_INTERFACE_ERROR = 3,
- PSM2_ERR_RESEND = 4,
- PSM2_ERR_NO_CALLBACK = 5,
+ PS2M_ERR_INVALID_INPUT = 2,
+ PS2M_ERR_INTERFACE_ERROR = 3,
+ PS2M_ERR_RESEND = 4,
+ PS2M_ERR_NO_CALLBACK = 5,
};
enum ps2m_status {
@@ -48,8 +48,9 @@ enum ps2m_status {
};
enum ps2m_packet_size {
- PS2M_PACKET_SIZE_PLAIN = 3,
- PS2M_PACKET_SIZE_EXT = 4,
+ PS2M_PACKET_SIZE_STREAMING = 1,
+ PS2M_PACKET_SIZE_PLAIN = 3,
+ PS2M_PACKET_SIZE_EXT = 4,
};
enum ps2m_device_ids {