diff options
author | yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-10-08 06:14:13 +0000 |
---|---|---|
committer | yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-10-08 06:14:13 +0000 |
commit | 41e8ff2781f3ca14f73ef5f39e781ccba8cb373d (patch) | |
tree | 8fd7edcbb8c98bf324db6e2b043b3603abf67158 /MdeModulePkg/Bus/Pci/EhciDxe/Ehci.h | |
parent | ba5711102a63d081cb388289983a0e2734e42fb5 (diff) | |
download | edk2-platforms-41e8ff2781f3ca14f73ef5f39e781ccba8cb373d.tar.xz |
Fixed unexpected timeout in Usb MassStorage Driver.
Fixed unexpected timeout in Uhci/Ehci driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4038 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Pci/EhciDxe/Ehci.h')
-rw-r--r-- | MdeModulePkg/Bus/Pci/EhciDxe/Ehci.h | 41 |
1 files changed, 29 insertions, 12 deletions
diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.h b/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.h index 7eb61be05a..816587db8d 100644 --- a/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.h +++ b/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.h @@ -49,18 +49,35 @@ typedef struct _USB2_HC_DEV USB2_HC_DEV; #include "EhciDebug.h"
enum {
- USB2_HC_DEV_SIGNATURE = EFI_SIGNATURE_32 ('e', 'h', 'c', 'i'),
- EHC_STALL_1_MICROSECOND = 1,
- EHC_STALL_1_MILLISECOND = 1000 * EHC_STALL_1_MICROSECOND,
- EHC_STALL_1_SECOND = 1000 * EHC_STALL_1_MILLISECOND,
-
- EHC_SET_PORT_RESET_TIME = 50 * EHC_STALL_1_MILLISECOND,
- EHC_CLEAR_PORT_RESET_TIME = EHC_STALL_1_MILLISECOND,
- EHC_GENERIC_TIME = 10 * EHC_STALL_1_MILLISECOND,
- EHC_SYNC_POLL_TIME = 20 * EHC_STALL_1_MICROSECOND,
- EHC_ASYNC_POLL_TIME = 50 * 10000UL, // The unit of time is 100us
-
- EHC_TPL = TPL_NOTIFY
+ EHC_1_MICROSECOND = 1,
+ EHC_1_MILLISECOND = 1000 * EHC_1_MICROSECOND,
+ EHC_1_SECOND = 1000 * EHC_1_MILLISECOND,
+
+ //
+ // EHCI register operation timeout, set by experience
+ //
+ EHC_RESET_TIMEOUT = 1 * EHC_1_SECOND,
+ EHC_GENERIC_TIMEOUT = 10 * EHC_1_MILLISECOND,
+
+ //
+ // Wait for roothub port power stable, refers to Spec[EHCI1.0-2.3.9]
+ //
+ EHC_ROOT_PORT_RECOVERY_STALL = 20 * EHC_1_MILLISECOND,
+
+ //
+ // Sync and Async transfer polling interval, set by experience,
+ // and the unit of Async is 100us, means 50ms as interval.
+ //
+ EHC_SYNC_POLL_INTERVAL = 20 * EHC_1_MICROSECOND,
+ EHC_ASYNC_POLL_INTERVAL = 50 * 10000U,
+
+ //
+ // EHC raises TPL to TPL_NOTIFY to serialize all its operations
+ // to protect shared data structures.
+ //
+ EHC_TPL = TPL_NOTIFY,
+
+ USB2_HC_DEV_SIGNATURE = EFI_SIGNATURE_32 ('e', 'h', 'c', 'i'),
};
//
|