aboutsummaryrefslogtreecommitdiff
path: root/hw/usb.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-01-12 13:24:22 +0100
committerGerd Hoffmann <kraxel@redhat.com>2012-02-10 11:31:57 +0100
commit63095ab54c1ce554b1fc825fc678394ccb129e5b (patch)
treea73d896821800ac2a751466b065a4df2050ad39c /hw/usb.h
parentf53c398aa603cea135ee58fd15249aeff7b9c7ea (diff)
downloadqemu-63095ab54c1ce554b1fc825fc678394ccb129e5b.zip
qemu-63095ab54c1ce554b1fc825fc678394ccb129e5b.tar.gz
qemu-63095ab54c1ce554b1fc825fc678394ccb129e5b.tar.bz2
usb: add USBEndpoint->{nr,pid}
Add a "nr" and "pid" fields to USBEndpoint so you can easily figure the endpoint number and direction of any given endpoint. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb.h')
-rw-r--r--hw/usb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/usb.h b/hw/usb.h
index 4e878d3..1e629af 100644
--- a/hw/usb.h
+++ b/hw/usb.h
@@ -171,6 +171,8 @@ struct USBDescString {
#define USB_MAX_INTERFACES 16
struct USBEndpoint {
+ uint8_t nr;
+ uint8_t pid;
uint8_t type;
uint8_t ifnum;
int max_packet_size;