diff options
author | Laurent Vivier <laurent@vivier.eu> | 2019-10-26 18:45:41 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2019-10-28 19:06:45 +0100 |
commit | 87a34e2adb03ca4120ef1e69ad5fe75d65c88b24 (patch) | |
tree | fb930f9eb093209130abb440d208ac4ea8fc5209 /include/hw/misc/mac_via.h | |
parent | 6dca62a0000f95e0b7020aa00d0ca9b2c421f341 (diff) |
hw/m68k: implement ADB bus support for via
VIA needs to be able to poll the ADB interface and to read/write data
from/to the bus.
This patch adds functions allowing that.
Co-developed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Hervé Poussineau <hpoussin@reactos.org>
Reviewed-by: Thomas Huth <huth@tuxfamily.org>
Message-Id: <20191026164546.30020-7-laurent@vivier.eu>
Diffstat (limited to 'include/hw/misc/mac_via.h')
-rw-r--r-- | include/hw/misc/mac_via.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hw/misc/mac_via.h b/include/hw/misc/mac_via.h index efc8ef3ce3..3f86fcb7e1 100644 --- a/include/hw/misc/mac_via.h +++ b/include/hw/misc/mac_via.h @@ -103,6 +103,13 @@ typedef struct MacVIAState { /* ADB */ ADBBusState adb_bus; + QEMUTimer *adb_poll_timer; + qemu_irq adb_data_ready; + int adb_data_in_size; + int adb_data_in_index; + int adb_data_out_index; + uint8_t adb_data_in[128]; + uint8_t adb_data_out[16]; } MacVIAState; #endif |