aboutsummaryrefslogtreecommitdiffstats
path: root/hw/usb.h
diff options
context:
space:
mode:
authorBrad Hards <bradh@frogmouth.net>2011-06-02 11:18:46 +1000
committerGerd Hoffmann <kraxel@redhat.com>2011-06-14 12:56:50 +0200
commit8e257816b0cb267b0cdfb819449d39f1689e0aa4 (patch)
tree4d5047892345d82de8177c90a95b6051e74e8286 /hw/usb.h
parent290a5c60a3d203a62a09c88083456ed3ad20329f (diff)
usb: Add defines for USB Serial Bus Release Number register
Signed-off-by: Brad Hards <bradh@frogmouth.net> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb.h')
-rw-r--r--hw/usb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/usb.h b/hw/usb.h
index 609720893..06ce05826 100644
--- a/hw/usb.h
+++ b/hw/usb.h
@@ -26,6 +26,12 @@
#include "qdev.h"
#include "qemu-queue.h"
+/* Constants related to the USB / PCI interaction */
+#define USB_SBRN 0x60 /* Serial Bus Release Number Register */
+#define USB_RELEASE_1 0x10 /* USB 1.0 */
+#define USB_RELEASE_2 0x20 /* USB 2.0 */
+#define USB_RELEASE_3 0x30 /* USB 3.0 */
+
#define USB_TOKEN_SETUP 0x2d
#define USB_TOKEN_IN 0x69 /* device -> host */
#define USB_TOKEN_OUT 0xe1 /* host -> device */