aboutsummaryrefslogtreecommitdiffstats
path: root/src/usb.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-02-14 12:16:32 -0500
committerKevin O'Connor <kevin@koconnor.net>2010-02-14 12:16:32 -0500
commit8bbc79c435c896ad0107725fa77c7aeb860af625 (patch)
treeb22717f1a6d5010771e30528d2b734e05d51dfb9 /src/usb.h
parent991eaff3f618d8018b2956b19bb47b0dff58a1d7 (diff)
downloadseabios-8bbc79c435c896ad0107725fa77c7aeb860af625.tar.gz
Add symbolic definitions for USB delays.
Diffstat (limited to 'src/usb.h')
-rw-r--r--src/usb.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/usb.h b/src/usb.h
index 8b9c5f1e..e4d0a660 100644
--- a/src/usb.h
+++ b/src/usb.h
@@ -75,6 +75,15 @@ static inline u8 endp2maxsize(u32 endp) {
* usb structs and flags
****************************************************************/
+// USB mandated timings (in ms)
+#define USB_TIME_SIGATT 100
+#define USB_TIME_ATTDB 100
+#define USB_TIME_DRST 10
+#define USB_TIME_DRSTR 50
+#define USB_TIME_RSTRCY 10
+
+#define USB_TIME_SETADDR_RECOVERY 2
+
#define USB_PID_OUT 0xe1
#define USB_PID_IN 0x69
#define USB_PID_SETUP 0x2d