]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/UfsPciHcDxe/UfsPciHcDxe.c
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / UfsPciHcDxe / UfsPciHcDxe.c
index 96cf39adc1991b87abd8fa7931908d6301d875bd..65393978606a937d48a25765048e82ba637c0388 100644 (file)
@@ -2,7 +2,7 @@
   UfsHcDxe driver is used to provide platform-dependent info, mainly UFS host controller\r
   MMIO base, to upper layer UFS drivers.\r
 \r
-  Copyright (c) 2014 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2014 - 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
@@ -95,24 +95,24 @@ UfsHcGetMmioBar (
   return Status;\r
 }\r
 \r
-/**                                                                 \r
+/**\r
   Provides the UFS controller-specific addresses needed to access system memory.\r
-            \r
+\r
   @param  This                  A pointer to the EFI_UFS_HOST_CONTROLLER_PROTOCOL instance.\r
   @param  Operation             Indicates if the bus master is going to read or write to system memory.\r
   @param  HostAddress           The system memory address to map to the UFS controller.\r
   @param  NumberOfBytes         On input the number of bytes to map. On output the number of bytes\r
-                                that were mapped.                                                 \r
+                                that were mapped.\r
   @param  DeviceAddress         The resulting map address for the bus master UFS controller to use to\r
-                                access the hosts HostAddress.                                        \r
+                                access the hosts HostAddress.\r
   @param  Mapping               A resulting value to pass to Unmap().\r
-                                  \r
+\r
   @retval EFI_SUCCESS           The range was mapped for the returned NumberOfBytes.\r
-  @retval EFI_UNSUPPORTED       The HostAddress cannot be mapped as a common buffer.                                \r
+  @retval EFI_UNSUPPORTED       The HostAddress cannot be mapped as a common buffer.\r
   @retval EFI_INVALID_PARAMETER One or more parameters are invalid.\r
   @retval EFI_OUT_OF_RESOURCES  The request could not be completed due to a lack of resources.\r
   @retval EFI_DEVICE_ERROR      The system hardware could not map the requested address.\r
-                                   \r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -140,15 +140,15 @@ UfsHcMap (
   return Status;\r
 }\r
 \r
-/**                                                                 \r
+/**\r
   Completes the Map() operation and releases any corresponding resources.\r
-            \r
-  @param  This                  A pointer to the EFI_UFS_HOST_CONTROLLER_PROTOCOL instance.                                      \r
+\r
+  @param  This                  A pointer to the EFI_UFS_HOST_CONTROLLER_PROTOCOL instance.\r
   @param  Mapping               The mapping value returned from Map().\r
-                                  \r
+\r
   @retval EFI_SUCCESS           The range was unmapped.\r
   @retval EFI_DEVICE_ERROR      The data was not committed to the target system memory.\r
-                                   \r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -172,25 +172,25 @@ UfsHcUnmap (
   return Status;\r
 }\r
 \r
-/**                                                                 \r
+/**\r
   Allocates pages that are suitable for an EfiUfsHcOperationBusMasterCommonBuffer\r
-  mapping.                                                                       \r
-            \r
+  mapping.\r
+\r
   @param  This                  A pointer to the EFI_UFS_HOST_CONTROLLER_PROTOCOL instance.\r
   @param  Type                  This parameter is not used and must be ignored.\r
   @param  MemoryType            The type of memory to allocate, EfiBootServicesData or\r
-                                EfiRuntimeServicesData.                               \r
-  @param  Pages                 The number of pages to allocate.                                \r
+                                EfiRuntimeServicesData.\r
+  @param  Pages                 The number of pages to allocate.\r
   @param  HostAddress           A pointer to store the base system memory address of the\r
-                                allocated range.                                        \r
+                                allocated range.\r
   @param  Attributes            The requested bit mask of attributes for the allocated range.\r
-                                  \r
+\r
   @retval EFI_SUCCESS           The requested memory pages were allocated.\r
   @retval EFI_UNSUPPORTED       Attributes is unsupported. The only legal attribute bits are\r
-                                MEMORY_WRITE_COMBINE and MEMORY_CACHED.                     \r
+                                MEMORY_WRITE_COMBINE and MEMORY_CACHED.\r
   @retval EFI_INVALID_PARAMETER One or more parameters are invalid.\r
-  @retval EFI_OUT_OF_RESOURCES  The memory pages could not be allocated.  \r
-                                   \r
+  @retval EFI_OUT_OF_RESOURCES  The memory pages could not be allocated.\r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -218,17 +218,17 @@ UfsHcAllocateBuffer (
   return Status;\r
 }\r
 \r
-/**                                                                 \r
+/**\r
   Frees memory that was allocated with AllocateBuffer().\r
-            \r
-  @param  This                  A pointer to the EFI_UFS_HOST_CONTROLLER_PROTOCOL instance.  \r
-  @param  Pages                 The number of pages to free.                                \r
-  @param  HostAddress           The base system memory address of the allocated range.                                    \r
-                                  \r
+\r
+  @param  This                  A pointer to the EFI_UFS_HOST_CONTROLLER_PROTOCOL instance.\r
+  @param  Pages                 The number of pages to free.\r
+  @param  HostAddress           The base system memory address of the allocated range.\r
+\r
   @retval EFI_SUCCESS           The requested memory pages were freed.\r
   @retval EFI_INVALID_PARAMETER The memory range specified by HostAddress and Pages\r
                                 was not allocated with AllocateBuffer().\r
-                                     \r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -253,16 +253,16 @@ UfsHcFreeBuffer (
   return Status;\r
 }\r
 \r
-/**                                                                 \r
+/**\r
   Flushes all posted write transactions from the UFS bus to attached UFS device.\r
-            \r
-  @param  This                  A pointer to the EFI_UFS_HOST_CONTROLLER_PROTOCOL instance.  \r
-                                  \r
+\r
+  @param  This                  A pointer to the EFI_UFS_HOST_CONTROLLER_PROTOCOL instance.\r
+\r
   @retval EFI_SUCCESS           The posted write transactions were flushed from the UFS bus\r
-                                to attached UFS device.                                      \r
+                                to attached UFS device.\r
   @retval EFI_DEVICE_ERROR      The posted write transactions were not flushed from the UFS\r
-                                bus to attached UFS device due to a hardware error.                           \r
-                                     \r
+                                bus to attached UFS device due to a hardware error.\r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -281,7 +281,7 @@ UfsHcFlush (
   return Status;\r
 }\r
 \r
-/**                                                                 \r
+/**\r
   Enable a UFS bus driver to access UFS MMIO registers in the UFS Host Controller memory space.\r
 \r
   @param  This                  A pointer to the EDKII_UFS_HOST_CONTROLLER_PROTOCOL instance.\r
@@ -323,7 +323,7 @@ UfsHcMmioRead (
   return Status;\r
 }\r
 \r
-/**                                                                 \r
+/**\r
   Enable a UFS bus driver to access UFS MMIO registers in the UFS Host Controller memory space.\r
 \r
   @param  This                  A pointer to the EDKII_UFS_HOST_CONTROLLER_PROTOCOL instance.\r