]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Framework/Ppi/SectionExtraction/SectionExtraction.h
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Framework / Ppi / SectionExtraction / SectionExtraction.h
1 /*++
2
3 Copyright (c) 2004, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 SectionExtraction.h
15
16 Abstract:
17
18 Section Extraction PPI as defined in Tiano
19
20 --*/
21
22 #ifndef _SECTION_EXTRACTION_PPI_H_
23 #define _SECTION_EXTRACTION_PPI_H_
24
25 #define EFI_PEI_SECTION_EXTRACTION_PPI_GUID \
26 { \
27 0x4F89E208, 0xE144, 0x4804, 0x9E, 0xC8, 0x0F, 0x89, 0x4F, 0x7E, 0x36, 0xD7 \
28 }
29
30 EFI_FORWARD_DECLARATION (EFI_PEI_SECTION_EXTRACTION_PPI);
31
32 typedef
33 EFI_STATUS
34 (EFIAPI *EFI_PEI_GET_SECTION) (
35 IN EFI_PEI_SERVICES **PeiServices,
36 IN EFI_PEI_SECTION_EXTRACTION_PPI * This,
37 IN EFI_SECTION_TYPE * SectionType,
38 IN EFI_GUID * SectionDefinitionGuid, OPTIONAL
39 IN UINTN SectionInstance,
40 IN VOID **Buffer,
41 IN OUT UINT32 *BufferSize,
42 OUT UINT32 *AuthenticationStatus
43 );
44
45 //
46 // Bit values for AuthenticationStatus
47 //
48 #define EFI_PEI_AUTH_STATUS_PLATFORM_OVERRIDE 0x01
49 #define EFI_PEI_AUTH_STATUS_IMAGE_SIGNED 0x02
50 #define EFI_PEI_AUTH_STATUS_NOT_TESTED 0x04
51 #define EFI_PEI_AUTH_STATUS_TEST_FAILED 0x08
52
53 typedef struct _EFI_PEI_SECTION_EXTRACTION_PPI {
54 EFI_PEI_GET_SECTION PeiGetSection;
55 } EFI_PEI_SECTION_EXTRACTION_PPI;
56
57 extern EFI_GUID gPeiSectionExtractionPpiGuid;
58
59 #endif