]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Ppi/GuidedSectionExtraction.h
Update the copyright notice format
[mirror_edk2.git] / MdePkg / Include / Ppi / GuidedSectionExtraction.h
index bf1716e4eb0198d112b5b77d6e438119ad74187a..84c913f870debd5a557037ae53265223ecf61b63 100644 (file)
@@ -1,11 +1,11 @@
-/* @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
-  All rights reserved. This program and the accompanying materials                          \r
+  Copyright (c) 2006 - 2008, 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
   http://opensource.org/licenses/bsd-license.php                                            \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
+  This PPI is introduced in PI Version 1.0.\r
 \r
 **/\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 EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI\r
+                                instance.\r
+  @param InputSection           Buffer containing the input GUIDed section to be\r
+                                processed.\r
+  @param OutputBuffer           *OutputBuffer is allocated from PEI permanent memory\r
+                                and contains the new section stream.\r
+  @param OutputSize             A pointer to a caller-allocated UINTN in which\r
+                                the size of *OutputBuffer allocation is stored.\r
+                                If the function returns anything other than\r
+                                EFI_SUCCESS, the value of *OutputSize is undefined.\r
+  @param AuthenticationStatus   A pointer to a caller-allocated UINT32 that indicates\r
+                                the authentication status of the output buffer.\r
+                                If the input section's\r
+                                GuidedSectionHeader.Attributes field has the\r
+                                EFI_GUIDED_SECTION_AUTH_STATUS_VALID bit as clear,\r
+                                *AuthenticationStatus must return zero. These bits\r
+                                reflect the status of the extraction operation.\r
+                                If the function returns anything other than EFI_SUCCESS,\r
+                                the value of *AuthenticationStatus is undefined.\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
-  \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
-                                section's GuidedSectionHeader.\r
-                                Attributes field has the\r
-                                EFI_GUIDED_SECTION_AUTH_STATUS_VALID \r
-                                bit as clear,\r
-                                AuthenticationStatus must return\r
-                                zero. These bits reflect the\r
-                                status of the extraction\r
-                                operation. If the function\r
-                                returns anything other than\r
-                                EFI_SUCCESS, the value of\r
-                                AuthenticationStatus is\r
-                                undefined.\r
-  \r
-  @retval EFI_SUCCESS                                  The InputSection was\r
-                                successfully processed and the\r
+  @retval EFI_SUCCESS           The InputSection was successfully processed and the\r
                                 section contents were returned.\r
-  \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
-                                not match this instance of the\r
+  @retval EFI_OUT_OF_RESOURCES  The system has insufficient resources to process the request.\r
+  @retval EFI_INVALID_PARAMETER The GUID in InputSection does 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
-  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
-  Extraction PPI to extract the section stream contained\r
-  therein.\r
-  \r
-  \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
+///\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
+/// Extraction PPI to extract the section stream contained\r
+/// therein.\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