Patchwork [1/3] usb: Add defines for USB Serial Bus Release Number register

login
register
mail settings
Submitter Brad Hards
Date June 2, 2011, 1:18 a.m.
Message ID <1306977528-20429-2-git-send-email-bradh@frogmouth.net>
Download mbox | patch
Permalink /patch/98329/
State New
Headers show

Comments

Brad Hards - June 2, 2011, 1:18 a.m.
Signed-off-by: Brad Hards <bradh@frogmouth.net>
---
 hw/usb.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/usb.h b/hw/usb.h
index 9882400..2c051b3 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 */