diff options
author | Mark Cave-Ayland | 2020-06-23 22:49:26 +0200 |
---|---|---|
committer | Mark Cave-Ayland | 2020-06-26 11:13:51 +0200 |
commit | 244a0ee96545e79af7ade39b510e459ef5a1c366 (patch) | |
tree | ebd0c104f97e6950c88c35c379e01bf6b0ceb4da /include/hw/input | |
parent | adb: introduce new ADBDeviceHasData method to ADBDeviceClass (diff) | |
download | qemu-244a0ee96545e79af7ade39b510e459ef5a1c366.tar.gz qemu-244a0ee96545e79af7ade39b510e459ef5a1c366.tar.xz qemu-244a0ee96545e79af7ade39b510e459ef5a1c366.zip |
adb: keep track of devices with pending data
Add a new pending variable to ADBBusState which is a bitmask indicating which
ADB devices have data to send. Update the bitmask every time that an ADB
request is executed.
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-13-mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'include/hw/input')
-rw-r--r-- | include/hw/input/adb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/input/adb.h b/include/hw/input/adb.h index 9b80204e43..f1bc358d8e 100644 --- a/include/hw/input/adb.h +++ b/include/hw/input/adb.h @@ -76,6 +76,7 @@ struct ADBBusState { /*< public >*/ ADBDevice *devices[MAX_ADB_DEVICES]; + uint16_t pending; int nb_devices; int poll_index; |