diff options
| author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2020-06-23 21:49:26 +0100 |
|---|---|---|
| committer | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2020-06-26 10:13:51 +0100 |
| commit | 244a0ee96545e79af7ade39b510e459ef5a1c366 (patch) | |
| tree | ebd0c104f97e6950c88c35c379e01bf6b0ceb4da /include/hw/input/adb.h | |
| parent | 969ca2f7a1a41123f08ce67d7a51075c3ee2fd6e (diff) | |
| download | focaccia-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.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; |