]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/EhciDxe/Ehci.h
modify coding style to pass ecc tool
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / EhciDxe / Ehci.h
index 94e415e2a55d705addf820520aac4e0cb5f226a7..ec2e913dc0e4fce1962056d8985173647d7006df 100644 (file)
@@ -1,5 +1,7 @@
 /** @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
@@ -9,15 +11,6 @@ http://opensource.org/licenses/bsd-license.php
 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
@@ -48,7 +41,7 @@ typedef struct _USB2_HC_DEV  USB2_HC_DEV;
 #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
@@ -69,16 +62,17 @@ enum {
   // 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