-/* @file\r
+/** @file\r
If a GUID-defined section is encountered when doing section extraction, \r
- the PEI Foundation or the EFI_PEI_FILE_LOADER_PPI instance \r
- calls the appropriate instance of the GUIDed Section Extraction PPI \r
- to extract the section stream contained therein.. \r
+ the PEI Foundation or the EFI_PEI_FILE_LOADER_PPI instance \r
+ calls the appropriate instance of the GUIDed Section Extraction PPI \r
+ to extract the section stream contained therein. \r
\r
- Copyright (c) 2006 - 2007, Intel Corporation \r
+ Copyright (c) 2006 - 2008, Intel Corporation \r
All rights reserved. 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
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
\r
- Module Name: GuidedSectionExtraction.h\r
-\r
@par Revision Reference:\r
This PPI is defined in PI Version 1.00.\r
\r
//\r
\r
\r
-typedef struct _EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI;\r
+typedef struct _EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI;\r
\r
-//\r
-// Bit values for AuthenticationStatus\r
-//\r
-#define EFI_AUTH_STATUS_PLATFORM_OVERRIDE 0x01\r
-#define EFI_AUTH_STATUS_IMAGE_SIGNED 0x02\r
-#define EFI_AUTH_STATUS_NOT_TESTED 0x04\r
-#define EFI_AUTH_STATUS_TEST_FAILED 0x08\r
\r
/**\r
+ Processes the input section and returns the data contained therein \r
+ along with the authentication status.\r
+\r
The ExtractSection() function processes the input section and\r
- returns a pointer to the section contents. If the section being\r
+ returns a pointer to the section contents. If the section being\r
extracted does not require processing (if the section\r
- GuidedSectionHeader.Attributes has the\r
- EFI_GUIDED_SECTION_PROCESSING_REQUIRED field cleared), then\r
- OutputBuffer is just updated to point to the start of the\r
+ GuidedSectionHeader.Attributes has the\r
+ EFI_GUIDED_SECTION_PROCESSING_REQUIRED field cleared), then\r
+ OutputBuffer is just updated to point to the start of the\r
section's contents. Otherwise, *Buffer must be allocated\r
from PEI permanent memory.\r
\r
- @param This Indicates the\r
- EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI instance.\r
- Buffer containing the input GUIDed section to be\r
- processed. OutputBuffer OutputBuffer is\r
- allocated from PEI permanent memory and contains\r
- the new section stream.\r
+ @param This Indicates the\r
+ EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI instance.\r
+ Buffer containing the input GUIDed section to be\r
+ processed. OutputBuffer OutputBuffer is\r
+ allocated from PEI permanent memory and contains\r
+ the new section stream.\r
\r
- @param OutputSize A pointer to a caller-allocated\r
- UINTN in which the size of *OutputBuffer\r
- allocation is stored. If the function\r
- returns anything other than EFI_SUCCESS,\r
- the value of OutputSize is undefined.\r
+ @param OutputSize A pointer to a caller-allocated\r
+ UINTN in which the size of *OutputBuffer\r
+ allocation is stored. If the function\r
+ returns anything other than EFI_SUCCESS,\r
+ the value of OutputSize is undefined.\r
\r
- @param AuthenticationStatus A pointer to a caller-allocated\r
+ @param AuthenticationStatus A pointer to a caller-allocated\r
UINT32 that indicates the\r
authentication status of the\r
output buffer. If the input\r
AuthenticationStatus is\r
undefined.\r
\r
- @retval EFI_SUCCESS The InputSection was\r
+ @retval EFI_SUCCESS The InputSection was\r
successfully processed and the\r
section contents were returned.\r
\r
- @retval EFI_OUT_OF_RESOURCES The system has insufficient\r
+ @retval EFI_OUT_OF_RESOURCES The system has insufficient\r
resources to process the request.\r
\r
- @reteval EFI_INVALID_PARAMETER The GUID in InputSection does\r
+ @retval EFI_INVALID_PARAMETER The GUID in InputSection does\r
not match this instance of the\r
GUIDed Section Extraction PPI.\r
**/\r
typedef\r
EFI_STATUS\r
(EFIAPI *EFI_PEI_EXTRACT_GUIDED_SECTION)(\r
- IN CONST EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI *This,\r
- IN CONST VOID *InputSection,\r
- OUT VOID **OutputBuffer,\r
- OUT UINTN *OutputSize,\r
- OUT UINT32 *AuthenticationStatus\r
+ IN CONST EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI *This,\r
+ IN CONST VOID *InputSection,\r
+ OUT VOID **OutputBuffer,\r
+ OUT UINTN *OutputSize,\r
+ OUT UINT32 *AuthenticationStatus\r
);\r
\r
\r
\r
/**\r
+ @par Ppi Description:\r
If a GUID-defined section is encountered when doing section extraction,\r
the PEI Foundation or the EFI_PEI_FILE_LOADER_PPI instance\r
calls the appropriate instance of the GUIDed Section\r
therein.\r
\r
\r
- @param ExtractSection Takes the GUIDed section as input and\r
+ @param ExtractSection Takes the GUIDed section as input and\r
produces the section stream data. See\r
the ExtractSection() function\r
description.\r
\r
**/\r
struct _EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI {\r
- EFI_PEI_EXTRACT_GUIDED_SECTION ExtractSection;\r
+ EFI_PEI_EXTRACT_GUIDED_SECTION ExtractSection;\r
};\r
\r
\r