\r
#include "DxeIpl.h"\r
\r
+\r
+\r
+/**\r
+ Support routine for the PE/COFF Loader that reads a buffer from a PE/COFF file\r
+\r
+ @param FileHandle The handle to the PE/COFF file \r
+ @param FileOffset The offset, in bytes, into the file to read \r
+ @param ReadSize The number of bytes to read from the file starting at \r
+ FileOffset \r
+ @param Buffer A pointer to the buffer to read the data into. \r
+\r
+ @retval EFI_SUCCESS ReadSize bytes of data were read into Buffer from the \r
+ PE/COFF file starting at FileOffset\r
+\r
+**/\r
EFI_STATUS\r
PeiImageRead (\r
IN VOID *FileHandle,\r
IN OUT UINTN *ReadSize,\r
OUT VOID *Buffer\r
)\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Support routine for the PE/COFF Loader that reads a buffer from a PE/COFF file\r
-\r
-Arguments:\r
-\r
- FileHandle - The handle to the PE/COFF file\r
-\r
- FileOffset - The offset, in bytes, into the file to read\r
-\r
- ReadSize - The number of bytes to read from the file starting at FileOffset\r
-\r
- Buffer - A pointer to the buffer to read the data into.\r
-\r
-Returns:\r
-\r
- EFI_SUCCESS - ReadSize bytes of data were read into Buffer from the PE/COFF file starting at FileOffset\r
-\r
---*/\r
{\r
CHAR8 *Destination8;\r
CHAR8 *Source8;\r
return EFI_SUCCESS;\r
}\r
\r
+\r
+/**\r
+ This function simply retrieves the function pointer of ImageRead in\r
+ ImageContext structure.\r
+ \r
+ @param ImageContext A pointer to the structure of \r
+ PE_COFF_LOADER_IMAGE_CONTEXT\r
+ \r
+ @retval EFI_SUCCESS This function always return EFI_SUCCESS.\r
+\r
+**/\r
EFI_STATUS\r
GetImageReadFunction (\r
IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r