]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/UhciDxe/Uhci.h
modify coding style to pass ecc tool and provide comments that complied with Doxgen.
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / UhciDxe / Uhci.h
index 73f9fe2c0fc76f5dfe1b2ad31205a8ec3ec4f88e..92c78333ebff4a3cce50a84155806d55bb404a02 100644 (file)
@@ -1,5 +1,7 @@
 /** @file\r
 \r
+  The definition for UHCI driver model and HC protocol routines.\r
+\r
 Copyright (c) 2004 - 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,21 +11,10 @@ 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
-  Uhci.h\r
-\r
-Abstract:\r
-\r
-  The definition for UHCI driver model and HC protocol routines.\r
-\r
-Revision History\r
-\r
-\r
 **/\r
 \r
-#ifndef _UHCI_H\r
-#define _UHCI_H\r
+#ifndef _EFI_UHCI_H_\r
+#define _EFI_UHCI_H_\r
 \r
 \r
 #include <PiDxe.h>\r
@@ -51,7 +42,7 @@ typedef struct _USB_HC_DEV  USB_HC_DEV;
 #include "UhciSched.h"\r
 #include "UhciDebug.h"\r
 \r
-enum {\r
+typedef enum {\r
   UHC_1_MICROSECOND             = 1,\r
   UHC_1_MILLISECOND             = 1000 * UHC_1_MICROSECOND,\r
   UHC_1_SECOND                  = 1000 * UHC_1_MILLISECOND,\r
@@ -80,16 +71,17 @@ enum {
   // and the unit of Async is 100us.\r
   //\r
   UHC_SYNC_POLL_INTERVAL        = 50 * UHC_1_MICROSECOND,\r
-  UHC_ASYNC_POLL_INTERVAL       = 50 * 10000UL,\r
+  UHC_ASYNC_POLL_INTERVAL       = 50 * 10000UL\r
+}UHC_TIMEOUT_EXPERIENCE_VALUE;\r
 \r
-  //\r
-  // UHC raises TPL to TPL_NOTIFY to serialize all its operations\r
-  // to protect shared data structures.\r
-  //\r
-  UHCI_TPL                 = TPL_NOTIFY,\r
 \r
-  USB_HC_DEV_SIGNATURE          = EFI_SIGNATURE_32 ('u', 'h', 'c', 'i')\r
-};\r
+//\r
+// UHC raises TPL to TPL_NOTIFY to serialize all its operations\r
+// to protect shared data structures.\r
+//\r
+#define  UHCI_TPL                     TPL_NOTIFY\r
+\r
+#define  USB_HC_DEV_SIGNATURE         EFI_SIGNATURE_32 ('u', 'h', 'c', 'i')\r
 \r
 #pragma pack(1)\r
 typedef struct {\r