\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
#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
// 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
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
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
);\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