diff options
author | Mark Cave-Ayland | 2020-06-23 22:49:33 +0200 |
---|---|---|
committer | Mark Cave-Ayland | 2020-06-26 11:13:52 +0200 |
commit | 975fcedd3194b486916a4b13afbf8308edf5b1a1 (patch) | |
tree | 195590d6cd76b64e915b492477064c18fb580013 /hw/input | |
parent | mac_via: move VIA1 portB write logic into mos6522_q800_via1_write() (diff) | |
download | qemu-975fcedd3194b486916a4b13afbf8308edf5b1a1.tar.gz qemu-975fcedd3194b486916a4b13afbf8308edf5b1a1.tar.xz qemu-975fcedd3194b486916a4b13afbf8308edf5b1a1.zip |
mac_via: rework ADB state machine to be compatible with both MacOS and Linux
The existing ADB state machine is designed to work with Linux which has a different
interpretation of the state machine detailed in "Guide to the Macintosh Family
Hardware". In particular the current Linux implementation includes an extra change
to IDLE state when switching the VIA between send and receive modes which does not
occur in MacOS, and omitting this transition causes the current mac_via ADB state
machine to fail.
Rework the ADB state machine accordingly so that it can enumerate and autopoll the
ADB under both Linux and MacOS, including the addition of the new adb_autopoll_block()
and adb_autopoll_unblock() functions.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tested-by: Finn Thain <fthain@telegraphics.com.au>
Acked-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200623204936.24064-20-mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw/input')
0 files changed, 0 insertions, 0 deletions