mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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>
This commit is contained in:
parent
969ca2f7a1
commit
244a0ee965
2 changed files with 16 additions and 1 deletions
|
@ -76,6 +76,7 @@ struct ADBBusState {
|
|||
/*< public >*/
|
||||
|
||||
ADBDevice *devices[MAX_ADB_DEVICES];
|
||||
uint16_t pending;
|
||||
int nb_devices;
|
||||
int poll_index;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue