]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/EhciPei/EhciSched.c
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / EhciPei / EhciSched.c
index 6b19362699b10619b8cbcb0fc34a02d386d5cbb3..65bc84f0c20ec5abb35f14f94516b18750755a2c 100644 (file)
@@ -2,8 +2,8 @@
 PEIM to produce gPeiUsb2HostControllerPpiGuid based on gPeiUsbControllerPpiGuid\r
 which is used to enable recovery function from USB Drivers.\r
 \r
-Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
-  \r
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
+\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
 of the BSD License which accompanies this distribution.  The\r
@@ -19,7 +19,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 /**\r
   Create helper QTD/QH for the EHCI device.\r
-  \r
+\r
   @param  Ehc         The EHCI device.\r
 \r
   @retval EFI_OUT_OF_RESOURCES  Failed to allocate resource for helper QTD/QH.\r
@@ -95,7 +95,7 @@ EhcCreateHelpQ (
 \r
 /**\r
   Initialize the schedule data structure such as frame list.\r
-  \r
+\r
   @param  Ehc                   The EHCI device to init schedule data for.\r
 \r
   @retval EFI_OUT_OF_RESOURCES  Failed to allocate resource to init schedule data.\r
@@ -162,7 +162,7 @@ EhcInitSched (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
+\r
   //\r
   // Initialize the frame list entries then set the registers\r
   //\r
@@ -186,8 +186,8 @@ EhcInitSched (
 \r
 /**\r
   Free the schedule data. It may be partially initialized.\r
-  \r
-  @param  Ehc   The EHCI device. \r
+\r
+  @param  Ehc   The EHCI device.\r
 \r
 **/\r
 VOID\r
@@ -230,7 +230,7 @@ EhcFreeSched (
   due to its interfaces. This simplifies the AsynList\r
   management: A reclamation header is always linked to\r
   the AsyncListAddr, the only active QH is appended to it.\r
-  \r
+\r
   @param  Ehc   The EHCI device.\r
   @param  Qh    The queue head to link.\r
 \r
@@ -260,7 +260,7 @@ EhcLinkQhToAsync (
 /**\r
   Unlink a queue head from the asynchronous schedule list.\r
   Need to synchronize with hardware.\r
-  \r
+\r
   @param  Ehc   The EHCI device.\r
   @param  Qh    The queue head to unlink.\r
 \r
@@ -291,13 +291,13 @@ EhcUnlinkQhFromAsync (
   // Set and wait the door bell to synchronize with the hardware\r
   //\r
   EhcSetAndWaitDoorBell (Ehc, EHC_GENERIC_TIMEOUT);\r
-  \r
+\r
   return;\r
 }\r
 \r
 /**\r
   Check the URB's execution result and update the URB's\r
-  result accordingly. \r
+  result accordingly.\r
 \r
   @param Ehc   The EHCI device.\r
   @param Urb   The URB to check result.\r
@@ -358,13 +358,13 @@ EhcCheckUrbResult (
 \r
       Finished = TRUE;\r
       goto ON_EXIT;\r
-      \r
+\r
     } else if (EHC_BIT_IS_SET (State, QTD_STAT_ACTIVE)) {\r
       //\r
       // The QTD is still active, no need to check furthur.\r
       //\r
       Urb->Result |= EFI_USB_ERR_NOTEXECUTE;\r
-      \r
+\r
       Finished = FALSE;\r
       goto ON_EXIT;\r
 \r
@@ -387,7 +387,7 @@ EhcCheckUrbResult (
         // Status Stage of the setup transfer to get the finial result\r
         //\r
         if (QtdHw->AltNext == QTD_LINK (Ehc->ShortReadStop, FALSE)) {\r
-          \r
+\r
           Finished = TRUE;\r
           goto ON_EXIT;\r
         }\r
@@ -412,7 +412,7 @@ ON_EXIT:
 \r
 /**\r
   Execute the transfer by polling the URB. This is a synchronous operation.\r
-  \r
+\r
   @param  Ehc               The EHCI device.\r
   @param  Urb               The URB to execute.\r
   @param  TimeOut           The time to wait before abort, in millisecond.\r