]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkPkg/Include/Ppi/SectionExtraction.h
IntelFrameworkPkg: Clean up source files
[mirror_edk2.git] / IntelFrameworkPkg / Include / Ppi / SectionExtraction.h
index 7d2ea98e0a05d739bcf75232d746c74998844ab9..2e888e6f7589fbb7f01860f1a5c1be0e79cbe4af 100644 (file)
@@ -1,29 +1,22 @@
 /** @file\r
-  This file declares Section Extraction PPI.\r
-  This PPI supports encapsulating sections, such as GUIDed sections used to authenticate the file\r
-  encapsulation of other domain-specific wrapping.\r
+  This file declares the Section Extraction PPI.\r
 \r
-  Copyright (c) 2006, 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
-  http://opensource.org/licenses/bsd-license.php\r
+  This PPI is defined in PEI CIS version 0.91. It supports encapsulating sections,\r
+  such as GUIDed sections used to authenticate the file encapsulation of other domain-specific wrapping.\r
 \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
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
+The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php.\r
 \r
-  Module Name:  SectionExtraction.h\r
-\r
-  @par Revision Reference:\r
-  This PPI is defined in PEI CIS.\r
-  Version 0.91.\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
 **/\r
 \r
-#ifndef __SECTION_EXTRACTION_PPI_H__\r
-#define __SECTION_EXTRACTION_PPI_H__\r
-\r
-#include <PiPei.h>\r
+#ifndef __SECTION_EXTRACTION_H__\r
+#define __SECTION_EXTRACTION_H__\r
 \r
 #define EFI_PEI_SECTION_EXTRACTION_PPI_GUID \\r
   { \\r
@@ -35,55 +28,61 @@ typedef struct _EFI_PEI_SECTION_EXTRACTION_PPI EFI_PEI_SECTION_EXTRACTION_PPI;
 //\r
 // Bit values for AuthenticationStatus\r
 //\r
-#define EFI_PEI_AUTH_STATUS_PLATFORM_OVERRIDE 0x01\r
-#define EFI_PEI_AUTH_STATUS_IMAGE_SIGNED      0x02\r
-#define EFI_PEI_AUTH_STATUS_NOT_TESTED        0x04\r
-#define EFI_PEI_AUTH_STATUS_TEST_FAILED       0x08\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
   The function is used to retrieve a section from within a section file.\r
   It will retrieve both encapsulation sections and leaf sections in their entirety,\r
   exclusive of the section header.\r
 \r
-  @param  PeiServices    Pointer to the PEI Services Table.\r
-  @param  This           Indicates the calling context\r
-  @param  SectionType    Pointer to an EFI_SECTION_TYPE. If SectionType == NULL,\r
-                         the contents of the entire section are returned in Buffer. If SectionType\r
-                         is not NULL, only the requested section is returned.\r
-  @param  SectionDefinitionGuid\r
-                         Pointer to an EFI_GUID.\r
-                         If SectionType == EFI_SECTION_GUID_DEFINED, SectionDefinitionGuid\r
-                         indicates for which section GUID to search.\r
-                         If SectionType != EFI_SECTION_GUID_DEFINED, SectionDefinitionGuid\r
-                         is unused and is ignored.\r
-  @param  SectionInstance If SectionType is not NULL, indicates which\r
-                         instance of the requested section type to return.\r
-  @param  Buffer         Pointer to a pointer to a buffer in which the section\r
-                         contents are returned.\r
-  @param  BufferSize     A pointer to a caller-allocated UINT32.On input, *BufferSize\r
-                         indicates the size in bytes of the memory region pointed to by Buffer.On output,\r
-                         *BufferSize contains the number of bytes required to read the section.\r
-  @param  AuthenticationStatus\r
-                         A pointer to a caller-allocated UINT32 in\r
-                         which any metadata from encapsulating GUID-defined sections is returned.\r
-\r
-  @retval EFI_SUCCESS           The section was successfully processed and the section\r
+  @param PeiServices            The pointer to the PEI Services Table.\r
+  @param This                   Indicates the calling context\r
+  @param SectionType            The pointer to an EFI_SECTION_TYPE. If\r
+                                SectionType == NULL, the contents of the entire\r
+                                section are returned in Buffer. If SectionType\r
+                                is not NULL, only the requested section is returned.\r
+  @param SectionDefinitionGuid  The pointer to an EFI_GUID.\r
+                                If SectionType == EFI_SECTION_GUID_DEFINED,\r
+                                SectionDefinitionGuid indicates for which section\r
+                                GUID to search.  If SectionType != EFI_SECTION_GUID_DEFINED,\r
+                                SectionDefinitionGuid is unused and is ignored.\r
+  @param SectionInstance        If SectionType is not NULL, indicates which\r
+                                instance of the requested section type to return.\r
+  @param Buffer                 The pointer to a pointer to a buffer in which the\r
+                                section contents are returned.\r
+  @param BufferSize             A pointer to a caller-allocated UINT32. On input,\r
+                                *BufferSize indicates the size in bytes of the\r
+                                memory region pointed to by Buffer. On output,\r
+                                *BufferSize contains the number of bytes required\r
+                                to read the section.\r
+  @param AuthenticationStatus   A pointer to a caller-allocated UINT32 in\r
+                                which any metadata from encapsulating GUID-defined\r
+                                sections is returned.\r
+\r
+  @retval EFI_SUCCESS           The section was successfully processed, and the section\r
                                 contents were returned in Buffer.\r
   @retval EFI_PROTOCOL_ERROR    A GUID-defined section was encountered in\r
-                                the file with its EFI_GUIDED_SECTION_PROCESSING_REQUIRED bit set, but\r
-                                there was no corresponding GUIDed Section Extraction Protocol in the\r
-                                handle database.*Buffer is unmodified.\r
-  @retval EFI_NOT_FOUND         The requested section does not exist.*Buffer is unmodified.\r
-  @retval EFI_OUT_OF_RESOURCES  The system has insufficient resources to process the request.\r
+                                the file with its EFI_GUIDED_SECTION_PROCESSING_REQUIRED\r
+                                bit set, but there was no corresponding GUIDed\r
+                                Section Extraction Protocol in the handle database.\r
+                                *Buffer is unmodified.\r
+  @retval EFI_NOT_FOUND         The requested section does not exist.*Buffer is\r
+                                unmodified.\r
+  @retval EFI_OUT_OF_RESOURCES  The system has insufficient resources to process\r
+                                the request.\r
   @retval EFI_INVALID_PARAMETER The SectionStreamHandle does not exist.\r
   @retval EFI_WARN_TOO_SMALL    The size of the input buffer is insufficient to\r
-                                contain the requested section. The input buffer is filled and contents are\r
-                                section contents are truncated.\r
+                                contain the requested section. The input buffer\r
+                                is filled and contents are section contents are\r
+                                truncated.\r
 \r
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_PEI_GET_SECTION) (\r
+(EFIAPI *EFI_PEI_GET_SECTION)(\r
   IN EFI_PEI_SERVICES                         **PeiServices,\r
   IN EFI_PEI_SECTION_EXTRACTION_PPI           *This,\r
   IN EFI_SECTION_TYPE                         *SectionType,\r
@@ -95,18 +94,14 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  @par Ppi Description:\r
   This PPI supports encapsulating sections, such as GUIDed sections used to\r
   authenticate the file encapsulation of other domain-specific wrapping.\r
-\r
-  @param GetSection\r
-  Retrieves a section from within a section file.\r
-\r
 **/\r
 struct _EFI_PEI_SECTION_EXTRACTION_PPI {\r
-  EFI_PEI_GET_SECTION PeiGetSection;\r
+  EFI_PEI_GET_SECTION GetSection;  ///< Retrieves a section from within a section file.\r
 };\r
 \r
 extern EFI_GUID gEfiPeiSectionExtractionPpiGuid;\r
 \r
 #endif\r
+\r