]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/EhciDxe/EhciReg.c
MdeModulePkg EhciDxe: Remove redundant functions
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / EhciDxe / EhciReg.c
index 34836eccf5fbda634c8d405c7e66499e1154c352..59752d1bdc649ba213af3465d58bf73cc38a2349 100644 (file)
@@ -372,29 +372,7 @@ EhcEnablePeriodSchd (
 }\r
 \r
 \r
-/**\r
-  Disable periodic schedule.\r
 \r
-  @param  Ehc               The EHCI device.\r
-  @param  Timeout           Time to wait before abort (in millisecond, ms).\r
-\r
-  @retval EFI_SUCCESS       Periodic schedule is disabled.\r
-  @retval EFI_DEVICE_ERROR  Fail to disable periodic schedule.\r
-\r
-**/\r
-EFI_STATUS\r
-EhcDisablePeriodSchd (\r
-  IN USB2_HC_DEV          *Ehc,\r
-  IN UINT32               Timeout\r
-  )\r
-{\r
-  EFI_STATUS              Status;\r
-\r
-  EhcClearOpRegBit (Ehc, EHC_USBCMD_OFFSET, USBCMD_ENABLE_PERIOD);\r
-\r
-  Status = EhcWaitOpRegBit (Ehc, EHC_USBSTS_OFFSET, USBSTS_PERIOD_ENABLED, FALSE, Timeout);\r
-  return Status;\r
-}\r
 \r
 \r
 \r
@@ -424,29 +402,7 @@ EhcEnableAsyncSchd (
 \r
 \r
 \r
-/**\r
-  Disable asynchrounous schedule.\r
 \r
-  @param  Ehc          The EHCI device.\r
-  @param  Timeout      Time to wait before abort (in millisecond, ms).\r
-\r
-  @retval EFI_SUCCESS  The asynchronous schedule is disabled.\r
-  @return Others       Failed to disable the asynchronous schedule.\r
-\r
-**/\r
-EFI_STATUS\r
-EhcDisableAsyncSchd (\r
-  IN USB2_HC_DEV          *Ehc,\r
-  IN UINT32               Timeout\r
-  )\r
-{\r
-  EFI_STATUS  Status;\r
-\r
-  EhcClearOpRegBit (Ehc, EHC_USBCMD_OFFSET, USBCMD_ENABLE_ASYNC);\r
-\r
-  Status = EhcWaitOpRegBit (Ehc, EHC_USBSTS_OFFSET, USBSTS_ASYNC_ENABLED, FALSE, Timeout);\r
-  return Status;\r
-}\r
 \r
 \r
 \r