]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/UhciDxe/Uhci.h
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / UhciDxe / Uhci.h
index 71b7a531a1a6efa6afcd55b839435f2ed922434a..e1218ffc571192353f81ff4790f5aecc72406005 100644 (file)
@@ -2,7 +2,7 @@
 \r
   The definition for UHCI driver model and HC protocol routines.\r
 \r
-Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -33,6 +33,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/BaseLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r
 #include <Library/PcdLib.h>\r
+#include <Library/ReportStatusCodeLib.h>\r
 \r
 #include <IndustryStandard/Pci.h>\r
 \r
@@ -77,7 +78,7 @@ typedef struct _USB_HC_DEV  USB_HC_DEV;
 // and the unit of Async is 100us.\r
 //\r
 #define UHC_SYNC_POLL_INTERVAL        (1 * UHC_1_MILLISECOND)\r
-#define UHC_ASYNC_POLL_INTERVAL       (50 * 10000UL)\r
+#define UHC_ASYNC_POLL_INTERVAL       EFI_TIMER_PERIOD_MILLISECONDS(1)\r
 \r
 //\r
 // UHC raises TPL to TPL_NOTIFY to serialize all its operations\r
@@ -112,6 +113,7 @@ struct _USB_HC_DEV {
   UINT32                    Signature;\r
   EFI_USB2_HC_PROTOCOL      Usb2Hc;\r
   EFI_PCI_IO_PROTOCOL       *PciIo;\r
+  EFI_DEVICE_PATH_PROTOCOL  *DevicePath;\r
   UINT64                    OriginalPciAttributes;\r
 \r
   //\r
@@ -143,7 +145,7 @@ struct _USB_HC_DEV {
   VOID                      *FrameMapping;\r
 \r
   //\r
-  // ExitBootServicesEvent is used to stop the EHC DMA operation \r
+  // ExitBootServicesEvent is used to stop the EHC DMA operation\r
   // after exit boot service.\r
   //\r
   EFI_EVENT                 ExitBootServiceEvent;\r
@@ -195,7 +197,7 @@ UhciDriverBindingStart (
   );\r
 \r
 /**\r
-  Stop this driver on ControllerHandle. Support stoping any child handles\r
+  Stop this driver on ControllerHandle. Support stopping any child handles\r
   created by this driver.\r
 \r
   @param  This                 Protocol instance pointer.\r