summary refs log tree commit diff stats
path: root/include/hw/input/adb.h
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2020-06-23 21:49:26 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2020-06-26 10:13:51 +0100
commit244a0ee96545e79af7ade39b510e459ef5a1c366 (patch)
treeebd0c104f97e6950c88c35c379e01bf6b0ceb4da /include/hw/input/adb.h
parent969ca2f7a1a41123f08ce67d7a51075c3ee2fd6e (diff)
downloadfocaccia-qemu-244a0ee96545e79af7ade39b510e459ef5a1c366.tar.gz
focaccia-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/adb.h')
-rw-r--r--include/hw/input/adb.h1
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;