EHCI HUB: Fix some issues related to speed and device addresses

This commit is contained in:
Gregory Nutt
2015-04-28 09:43:06 -06:00
parent 08b35f042b
commit 5c76c53909
3 changed files with 115 additions and 26 deletions
+1 -2
View File
@@ -51,13 +51,12 @@
********************************************************************************************/
/* General definitions **********************************************************************/
/* Endpoint speed values as used in endpoint characteristics field. NOTE: These values
* are assumed to equal to the SPEED definitions in usb.h (minus 1).
* are *NOT* the same as the SPEED definitions in usb.h.
*/
#define EHCI_FULL_SPEED (0) /* Full-Speed (12Mbs) */
#define EHCI_LOW_SPEED (1) /* Low-Speed (1.5Mbs) */
#define EHCI_HIGH_SPEED (2) /* High-Speed (480 Mb/s) */
#define EHCI_SPEED(s) ((s)-1)
#define EHCI_DIR_IN (1) /* Direction IN: Peripheral to host */
#define EHCI_DIR_OUT (0) /* Direction OUT: Host to peripheral */