/** @file\r
\r
+ Provides some data struct used by EHCI controller driver.\r
+\r
Copyright (c) 2006 - 2007, Intel Corporation\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
-Module Name:\r
-\r
- Ehci.h\r
-\r
-Abstract:\r
-\r
-\r
-Revision History\r
-\r
**/\r
\r
#ifndef _EFI_EHCI_H_\r
#include "EhciSched.h"\r
#include "EhciDebug.h"\r
\r
-enum {\r
+typedef enum {\r
EHC_1_MICROSECOND = 1,\r
EHC_1_MILLISECOND = 1000 * EHC_1_MICROSECOND,\r
EHC_1_SECOND = 1000 * EHC_1_MILLISECOND,\r
// and the unit of Async is 100us, means 50ms as interval.\r
//\r
EHC_SYNC_POLL_INTERVAL = 20 * EHC_1_MICROSECOND,\r
- EHC_ASYNC_POLL_INTERVAL = 50 * 10000U,\r
+ EHC_ASYNC_POLL_INTERVAL = 50 * 10000U\r
+} EHC_TIMEOUT_EXPERIENCE_VALUE;\r
+\r
\r
//\r
// EHC raises TPL to TPL_NOTIFY to serialize all its operations\r
// to protect shared data structures.\r
//\r
- EHC_TPL = TPL_NOTIFY,\r
+#define EHC_TPL TPL_NOTIFY\r
\r
- USB2_HC_DEV_SIGNATURE = EFI_SIGNATURE_32 ('e', 'h', 'c', 'i')\r
-};\r
+#define USB2_HC_DEV_SIGNATURE EFI_SIGNATURE_32 ('e', 'h', 'c', 'i')\r
\r
//\r
//Iterate through the doule linked list. NOT delete safe\r