adb: keep track of devices with pending data
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 23 Jun 2020 20:49:26 +0000 (21:49 +0100)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fri, 26 Jun 2020 09:13:51 +0000 (10:13 +0100)
commit244a0ee96545e79af7ade39b510e459ef5a1c366
treeebd0c104f97e6950c88c35c379e01bf6b0ceb4da
parent969ca2f7a1a41123f08ce67d7a51075c3ee2fd6e
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>
hw/input/adb.c
include/hw/input/adb.h