]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/UfsPciHcDxe/UfsPciHcDxe.h
MdeModulePkg/PciBus: Correct typos
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / UfsPciHcDxe / UfsPciHcDxe.h
index 89f19feb7aa725322f5c52dbdaa708428626e4b4..5a83be968f742c5afe38e95c049e90cbdbe45fa5 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 - 2015, 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
@@ -32,7 +32,6 @@
 #include <Library/BaseLib.h>\r
 #include <Library/DebugLib.h>\r
 #include <Library/UefiLib.h>\r
-#include <Library/DevicePathLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/UefiDriverEntryPoint.h>\r
@@ -49,14 +48,13 @@ extern EFI_COMPONENT_NAME2_PROTOCOL               gUfsHcComponentName2;
 typedef struct _UFS_HOST_CONTROLLER_PRIVATE_DATA  UFS_HOST_CONTROLLER_PRIVATE_DATA;\r
 \r
 //\r
-// Nvme private data structure.\r
+// Ufs host controller private data structure.\r
 //\r
 struct _UFS_HOST_CONTROLLER_PRIVATE_DATA {\r
   UINT32                             Signature;\r
-  EFI_HANDLE                         Handle;\r
 \r
   EDKII_UFS_HOST_CONTROLLER_PROTOCOL UfsHc;\r
-  EFI_PCI_IO_PROTOCOL                *PciIo;  \r
+  EFI_PCI_IO_PROTOCOL                *PciIo;\r
   UINT8                              BarIndex;\r
   UINT64                             PciAttributes;\r
 };\r
@@ -337,24 +335,24 @@ UfsHcGetMmioBar (
      OUT UINTN                              *MmioBar\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
@@ -367,15 +365,15 @@ UfsHcMap (
      OUT VOID                                 **Mapping\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
@@ -384,25 +382,25 @@ UfsHcUnmap (
   IN  VOID                                 *Mapping\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
@@ -415,17 +413,17 @@ UfsHcAllocateBuffer (
   IN     UINT64                             Attributes\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
@@ -435,16 +433,16 @@ UfsHcFreeBuffer (
   IN  VOID                                  *HostAddress\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
@@ -452,7 +450,7 @@ UfsHcFlush (
   IN  EDKII_UFS_HOST_CONTROLLER_PROTOCOL   *This\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
@@ -480,7 +478,7 @@ UfsHcMmioRead (
   IN OUT VOID                                      *Buffer\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