]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Image.h
Code Scrub for Dxe Core.
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Image.h
index e84a05f6322c820410a04caf729209f24a6110a6..b2f8b88b793932b837b39137f2d32de89a3763cf 100644 (file)
@@ -94,21 +94,21 @@ typedef struct {
   will access the file either from a memory copy, from a file\r
   system interface, or from the load file interface.\r
 \r
   will access the file either from a memory copy, from a file\r
   system interface, or from the load file interface.\r
 \r
-  @param  BootPolicy             Policy for Open Image File. \r
-  @param  SourceBuffer           Pointer to the memory location containing copy \r
-                                 of the image to be loaded. \r
-  @param  SourceSize             The size in bytes of SourceBuffer. \r
-  @param  FilePath               The specific file path from which the image is \r
-                                 loaded \r
-  @param  DeviceHandle           Pointer to the return device handle. \r
-  @param  ImageFileHandle        Pointer to the image file handle. \r
-  @param  AuthenticationStatus   Pointer to a caller-allocated UINT32 in which \r
-                                 the authentication status is returned. \r
-\r
-  @retval EFI_SUCCESS            Image file successfully opened. \r
-  @retval EFI_LOAD_ERROR         If the caller passed a copy of the file, and \r
-                                 SourceSize is 0. \r
-  @retval EFI_INVALID_PARAMETER  File path is not valid. \r
+  @param  BootPolicy             Policy for Open Image File.\r
+  @param  SourceBuffer           Pointer to the memory location containing copy\r
+                                 of the image to be loaded.\r
+  @param  SourceSize             The size in bytes of SourceBuffer.\r
+  @param  FilePath               The specific file path from which the image is\r
+                                 loaded\r
+  @param  DeviceHandle           Pointer to the return device handle.\r
+  @param  ImageFileHandle        Pointer to the image file handle.\r
+  @param  AuthenticationStatus   Pointer to a caller-allocated UINT32 in which\r
+                                 the authentication status is returned.\r
+\r
+  @retval EFI_SUCCESS            Image file successfully opened.\r
+  @retval EFI_LOAD_ERROR         If the caller passed a copy of the file, and\r
+                                 SourceSize is 0.\r
+  @retval EFI_INVALID_PARAMETER  File path is not valid.\r
   @retval EFI_NOT_FOUND          File not found.\r
 \r
 **/\r
   @retval EFI_NOT_FOUND          File not found.\r
 \r
 **/\r
@@ -129,13 +129,13 @@ CoreOpenImageFile (
   Read image file (specified by UserHandle) into user specified buffer with specified offset\r
   and length.\r
 \r
   Read image file (specified by UserHandle) into user specified buffer with specified offset\r
   and length.\r
 \r
-  @param  UserHandle             Image file handle \r
-  @param  Offset                 Offset to the source file \r
-  @param  ReadSize               For input, pointer of size to read; For output, \r
-                                 pointer of size actually read. \r
-  @param  Buffer                 Buffer to write into \r
+  @param  UserHandle             Image file handle\r
+  @param  Offset                 Offset to the source file\r
+  @param  ReadSize               For input, pointer of size to read; For output,\r
+                                 pointer of size actually read.\r
+  @param  Buffer                 Buffer to write into\r
 \r
 \r
-  @retval EFI_SUCCESS            Successfully read the specified part of file \r
+  @retval EFI_SUCCESS            Successfully read the specified part of file\r
                                  into buffer.\r
 \r
 **/\r
                                  into buffer.\r
 \r
 **/\r
@@ -169,11 +169,11 @@ CoreCloseImageFile (
   Search a handle to a device on a specified device path that supports a specified protocol,\r
   interface of that protocol on that handle is another output.\r
 \r
   Search a handle to a device on a specified device path that supports a specified protocol,\r
   interface of that protocol on that handle is another output.\r
 \r
-  @param  Protocol               The protocol to search for \r
-  @param  FilePath               The specified device path \r
-  @param  Interface              Interface of the protocol on the handle \r
-  @param  Handle                 The handle to the device on the specified device \r
-                                 path that supports the protocol. \r
+  @param  Protocol               The protocol to search for\r
+  @param  FilePath               The specified device path\r
+  @param  Interface              Interface of the protocol on the handle\r
+  @param  Handle                 The handle to the device on the specified device\r
+                                 path that supports the protocol.\r
 \r
   @return Status code.\r
 \r
 \r
   @return Status code.\r
 \r
@@ -190,27 +190,27 @@ CoreDevicePathToInterface (
 /**\r
   Loads, relocates, and invokes a PE/COFF image\r
 \r
 /**\r
   Loads, relocates, and invokes a PE/COFF image\r
 \r
-  @param  BootPolicy              If TRUE, indicates that the request originates \r
-                                  from the boot manager, and that the boot \r
-                                  manager is attempting to load FilePath as a \r
-                                  boot selection. \r
-  @param  Pe32Handle              The handle of PE32 image \r
-  @param  Image                   PE image to be loaded \r
-  @param  DstBuffer               The buffer to store the image \r
-  @param  EntryPoint              A pointer to the entry point \r
-  @param  Attribute               The bit mask of attributes to set for the load \r
-                                  PE image \r
-\r
-  @retval EFI_SUCCESS             The file was loaded, relocated, and invoked \r
-  @retval EFI_OUT_OF_RESOURCES    There was not enough memory to load and \r
-                                  relocate the PE/COFF file \r
-  @retval EFI_INVALID_PARAMETER   Invalid parameter \r
+  @param  BootPolicy              If TRUE, indicates that the request originates\r
+                                  from the boot manager, and that the boot\r
+                                  manager is attempting to load FilePath as a\r
+                                  boot selection.\r
+  @param  Pe32Handle              The handle of PE32 image\r
+  @param  Image                   PE image to be loaded\r
+  @param  DstBuffer               The buffer to store the image\r
+  @param  EntryPoint              A pointer to the entry point\r
+  @param  Attribute               The bit mask of attributes to set for the load\r
+                                  PE image\r
+\r
+  @retval EFI_SUCCESS             The file was loaded, relocated, and invoked\r
+  @retval EFI_OUT_OF_RESOURCES    There was not enough memory to load and\r
+                                  relocate the PE/COFF file\r
+  @retval EFI_INVALID_PARAMETER   Invalid parameter\r
   @retval EFI_BUFFER_TOO_SMALL    Buffer for image is too small\r
 \r
 **/\r
 EFI_STATUS\r
 CoreLoadPeImage (\r
   @retval EFI_BUFFER_TOO_SMALL    Buffer for image is too small\r
 \r
 **/\r
 EFI_STATUS\r
 CoreLoadPeImage (\r
-  IN BOOLEAN                     BootPolicy,  \r
+  IN BOOLEAN                     BootPolicy,\r
   IN VOID                        *Pe32Handle,\r
   IN LOADED_IMAGE_PRIVATE_DATA   *Image,\r
   IN EFI_PHYSICAL_ADDRESS        DstBuffer    OPTIONAL,\r
   IN VOID                        *Pe32Handle,\r
   IN LOADED_IMAGE_PRIVATE_DATA   *Image,\r
   IN EFI_PHYSICAL_ADDRESS        DstBuffer    OPTIONAL,\r
@@ -222,7 +222,7 @@ CoreLoadPeImage (
 /**\r
   Get the image's private data from its handle.\r
 \r
 /**\r
   Get the image's private data from its handle.\r
 \r
-  @param  ImageHandle             The image handle \r
+  @param  ImageHandle             The image handle\r
 \r
   @return Return the image private data associated with ImageHandle.\r
 \r
 \r
   @return Return the image private data associated with ImageHandle.\r
 \r
@@ -236,7 +236,7 @@ CoreLoadedImageInfo (
 /**\r
   Unloads EFI image from memory.\r
 \r
 /**\r
   Unloads EFI image from memory.\r
 \r
-  @param  Image                   EFI image \r
+  @param  Image                   EFI image\r
   @param  FreePage                Free allocated pages\r
 \r
 **/\r
   @param  FreePage                Free allocated pages\r
 \r
 **/\r
@@ -255,29 +255,29 @@ CoreUnloadAndCloseImage (
 /**\r
   Loads an EFI image into memory and returns a handle to the image with extended parameters.\r
 \r
 /**\r
   Loads an EFI image into memory and returns a handle to the image with extended parameters.\r
 \r
-  @param  This                    Calling context \r
-  @param  ParentImageHandle       The caller's image handle. \r
-  @param  FilePath                The specific file path from which the image is \r
-                                  loaded. \r
-  @param  SourceBuffer            If not NULL, a pointer to the memory location \r
-                                  containing a copy of the image to be loaded. \r
-  @param  SourceSize              The size in bytes of SourceBuffer. \r
-  @param  DstBuffer               The buffer to store the image. \r
-  @param  NumberOfPages           For input, specifies the space size of the \r
-                                  image by caller if not NULL. For output, \r
-                                  specifies the actual space size needed. \r
-  @param  ImageHandle             Image handle for output. \r
-  @param  EntryPoint              Image entry point for output. \r
-  @param  Attribute               The bit mask of attributes to set for the load \r
-                                  PE image. \r
-\r
-  @retval EFI_SUCCESS             The image was loaded into memory. \r
-  @retval EFI_NOT_FOUND           The FilePath was not found. \r
-  @retval EFI_INVALID_PARAMETER   One of the parameters has an invalid value. \r
-  @retval EFI_UNSUPPORTED         The image type is not supported, or the device \r
-                                  path cannot be parsed to locate the proper \r
-                                  protocol for loading the file. \r
-  @retval EFI_OUT_OF_RESOURCES    Image was not loaded due to insufficient \r
+  @param  This                    Calling context\r
+  @param  ParentImageHandle       The caller's image handle.\r
+  @param  FilePath                The specific file path from which the image is\r
+                                  loaded.\r
+  @param  SourceBuffer            If not NULL, a pointer to the memory location\r
+                                  containing a copy of the image to be loaded.\r
+  @param  SourceSize              The size in bytes of SourceBuffer.\r
+  @param  DstBuffer               The buffer to store the image.\r
+  @param  NumberOfPages           For input, specifies the space size of the\r
+                                  image by caller if not NULL. For output,\r
+                                  specifies the actual space size needed.\r
+  @param  ImageHandle             Image handle for output.\r
+  @param  EntryPoint              Image entry point for output.\r
+  @param  Attribute               The bit mask of attributes to set for the load\r
+                                  PE image.\r
+\r
+  @retval EFI_SUCCESS             The image was loaded into memory.\r
+  @retval EFI_NOT_FOUND           The FilePath was not found.\r
+  @retval EFI_INVALID_PARAMETER   One of the parameters has an invalid value.\r
+  @retval EFI_UNSUPPORTED         The image type is not supported, or the device\r
+                                  path cannot be parsed to locate the proper\r
+                                  protocol for loading the file.\r
+  @retval EFI_OUT_OF_RESOURCES    Image was not loaded due to insufficient\r
                                   resources.\r
 \r
 **/\r
                                   resources.\r
 \r
 **/\r
@@ -300,11 +300,11 @@ CoreLoadImageEx (
 /**\r
   Unload the specified image.\r
 \r
 /**\r
   Unload the specified image.\r
 \r
-  @param  This                    Indicates the calling context. \r
-  @param  ImageHandle             The specified image handle. \r
+  @param  This                    Indicates the calling context.\r
+  @param  ImageHandle             The specified image handle.\r
 \r
 \r
-  @retval EFI_INVALID_PARAMETER   Image handle is NULL. \r
-  @retval EFI_UNSUPPORTED         Attempt to unload an unsupported image. \r
+  @retval EFI_INVALID_PARAMETER   Image handle is NULL.\r
+  @retval EFI_UNSUPPORTED         Attempt to unload an unsupported image.\r
   @retval EFI_SUCCESS             Image successfully unloaded.\r
 \r
 **/\r
   @retval EFI_SUCCESS             Image successfully unloaded.\r
 \r
 **/\r