diff options
Diffstat (limited to 'Core/PPI')
-rw-r--r-- | Core/PPI/DxeIpl.h | 65 | ||||
-rw-r--r-- | Core/PPI/FindFv.h | 80 | ||||
-rw-r--r-- | Core/PPI/FirmwareVolume.h | 99 | ||||
-rw-r--r-- | Core/PPI/GuidedSectionExtraction.h | 42 | ||||
-rw-r--r-- | Core/PPI/LoadFile2.h | 5 | ||||
-rw-r--r-- | Core/PPI/MemoryDiscovered.h | 65 | ||||
-rw-r--r-- | Core/PPI/SectionExtraction.h | 59 | ||||
-rw-r--r-- | Core/PPI/Security.h | 83 | ||||
-rw-r--r-- | Core/PPI/Security2.h | 54 | ||||
-rw-r--r-- | Core/PPI/StatusCode.h | 56 |
10 files changed, 608 insertions, 0 deletions
diff --git a/Core/PPI/DxeIpl.h b/Core/PPI/DxeIpl.h new file mode 100644 index 0000000..35897e6 --- /dev/null +++ b/Core/PPI/DxeIpl.h @@ -0,0 +1,65 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** + +//********************************************************************** +// $Header: /Alaska/SOURCE/Core/EDK/PPI/DxeIpl.h 1 5/19/06 11:28p Felixp $ +// +// $Revision: 1 $ +// +// $Date: 5/19/06 11:28p $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Core/EDK/PPI/DxeIpl.h $ +// +// 1 5/19/06 11:28p Felixp +// +// 1 3/13/06 1:57a Felixp +// +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: DxeIpl.h +// +// Description: +// +//<AMI_FHDR_END> +//********************************************************************** +#ifndef __DXE_IPL_PPI__H__ +#define __DXE_IPL_PPI__H__ +#ifdef __cplusplus +extern "C" { +#endif +//DxeIpl is defined in PEI.h +#include <PEI.h> + +GUID_VARIABLE_DECLARATION(gEfiDxeIplPpiGuid, EFI_DXE_IPL_PPI_GUID); +/****** DO NOT WRITE BELOW THIS LINE *******/ +#ifdef __cplusplus +} +#endif +#endif +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** diff --git a/Core/PPI/FindFv.h b/Core/PPI/FindFv.h new file mode 100644 index 0000000..c8ab421 --- /dev/null +++ b/Core/PPI/FindFv.h @@ -0,0 +1,80 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** + +//********************************************************************** +// $Header: /Alaska/SOURCE/Core/EDK/PPI/FindFv.h 1 5/19/06 11:28p Felixp $ +// +// $Revision: 1 $ +// +// $Date: 5/19/06 11:28p $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Core/EDK/PPI/FindFv.h $ +// +// 1 5/19/06 11:28p Felixp +// +// 1 3/13/06 1:57a Felixp +// +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: FindFv.h +// +// Description: +// +//<AMI_FHDR_END> +//********************************************************************** +#ifndef __FIND_FV_PPI__H__ +#define __FIND_FV_PPI__H__ +#ifdef __cplusplus +extern "C" { +#endif +#include <PEI.h> +#include <FFS.h> + +#define EFI_FIND_FV_PPI_GUID \ + { 0x36164812, 0xa023, 0x44e5, 0xbd, 0x85, 0x5, 0xbf, 0x3c, 0x77, 0x0, 0xaa } + +typedef struct _EFI_FIND_FV_PPI EFI_FIND_FV_PPI; + +typedef EFI_STATUS (EFIAPI *EFI_FIND_FV_FINDFV)( + IN EFI_FIND_FV_PPI * This, + IN EFI_PEI_SERVICES **PeiServices, + UINT8 *FvNumber, EFI_FIRMWARE_VOLUME_HEADER **FVAddress +); + +struct _EFI_FIND_FV_PPI { + EFI_FIND_FV_FINDFV FindFv; +}; + +GUID_VARIABLE_DECLARATION(gEfiFindFvPpiGuid, EFI_FIND_FV_PPI_GUID); +/****** DO NOT WRITE BELOW THIS LINE *******/ +#ifdef __cplusplus +} +#endif +#endif +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//**********************************************************************
\ No newline at end of file diff --git a/Core/PPI/FirmwareVolume.h b/Core/PPI/FirmwareVolume.h new file mode 100644 index 0000000..2b6e3a1 --- /dev/null +++ b/Core/PPI/FirmwareVolume.h @@ -0,0 +1,99 @@ +/*++ + +Copyright (c) 2007 - 2009, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + + FirmwareVolume.h + +Abstract: + + PI 1.0 spec definition. + +--*/ + +#ifndef __FIRMWARE_VOLUME_H__ +#define __FIRMWARE_VOLUME_H__ + +#if defined(PI_SPECIFICATION_VERSION)&&(PI_SPECIFICATION_VERSION>=0x00010000) +#include <Pei.h> + +EFI_FORWARD_DECLARATION (EFI_PEI_FIRMWARE_VOLUME_PPI); + +typedef UINT32 EFI_FV_FILE_ATTRIBUTES; +typedef VOID * EFI_PEI_FILE_HANDLE; +typedef VOID * EFI_PEI_FV_HANDLE; + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_FV_PROCESS_FV) ( + IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, + IN VOID *Buffer, + IN UINTN BufferSize, + OUT EFI_PEI_FV_HANDLE *FvHandle + ); + + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_FV_FIND_FILE_TYPE) ( + IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, + IN EFI_FV_FILETYPE SearchType, + IN EFI_PEI_FV_HANDLE FvHandle, + IN OUT EFI_PEI_FILE_HANDLE *FileHandle + ); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_FV_FIND_FILE_NAME) ( + IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, + IN CONST EFI_GUID *FileName, + IN OUT EFI_PEI_FV_HANDLE *FvHandle, + OUT EFI_PEI_FILE_HANDLE *FileHandle + ); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_FV_GET_FILE_INFO) ( + IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, + IN EFI_PEI_FILE_HANDLE FileHandle, + OUT EFI_FV_FILE_INFO *FileInfo + ); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_FV_GET_INFO)( + IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, + IN EFI_PEI_FV_HANDLE FvHandle, + OUT EFI_FV_INFO *VolumeInfo + ); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_FV_FIND_SECTION) ( + IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, + IN EFI_SECTION_TYPE SearchType, + IN EFI_PEI_FILE_HANDLE FileHandle, + OUT VOID **SectionData + ); + +typedef struct _EFI_PEI_FIRMWARE_VOLUME_PPI { + EFI_PEI_FV_PROCESS_FV ProcessVolume; + EFI_PEI_FV_FIND_FILE_TYPE FindFileByType; + EFI_PEI_FV_FIND_FILE_NAME FindFileByName; + EFI_PEI_FV_GET_FILE_INFO GetFileInfo; + EFI_PEI_FV_GET_INFO GetVolumeInfo; + EFI_PEI_FV_FIND_SECTION FindSectionByType; +} EFI_PEI_FIRMWARE_VOLUME_PPI; + +#endif + + +#endif
\ No newline at end of file diff --git a/Core/PPI/GuidedSectionExtraction.h b/Core/PPI/GuidedSectionExtraction.h new file mode 100644 index 0000000..b53ffa6 --- /dev/null +++ b/Core/PPI/GuidedSectionExtraction.h @@ -0,0 +1,42 @@ +/*++ + +Copyright (c) 2007, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + + GuidedSectionExtraction.h + +Abstract: + + PI 1.0 spec definition. + +--*/ + + +#ifndef __GUIDED_SECTION_EXTRACTION_PPI_H__ +#define __GUIDED_SECTION_EXTRACTION_PPI_H__ + +EFI_FORWARD_DECLARATION (EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_EXTRACT_GUIDED_SECTION)( + IN CONST EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI *This, + IN CONST VOID *InputSection, + OUT VOID **OutputBuffer, + OUT UINTN *OutputSize, + OUT UINT32 *AuthenticationStatus + ); + +typedef struct _EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI { + EFI_PEI_EXTRACT_GUIDED_SECTION ExtractSection; +} EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI; + +#endif diff --git a/Core/PPI/LoadFile2.h b/Core/PPI/LoadFile2.h new file mode 100644 index 0000000..a87a198 --- /dev/null +++ b/Core/PPI/LoadFile2.h @@ -0,0 +1,5 @@ +#ifndef __LOAD_FILE_PPI_H__ +#define __LOAD_FILE_PPI_H__ +#include <Ppi/LoadFile.h> +#define gEfiLoadFile2PpiGuid gEfiPeiLoadFilePpiGuid +#endif diff --git a/Core/PPI/MemoryDiscovered.h b/Core/PPI/MemoryDiscovered.h new file mode 100644 index 0000000..4bf69d8 --- /dev/null +++ b/Core/PPI/MemoryDiscovered.h @@ -0,0 +1,65 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** + +//********************************************************************** +// $Header: /Alaska/SOURCE/Core/EDK/PPI/MemoryDiscovered.h 1 5/19/06 11:28p Felixp $ +// +// $Revision: 1 $ +// +// $Date: 5/19/06 11:28p $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Core/EDK/PPI/MemoryDiscovered.h $ +// +// 1 5/19/06 11:28p Felixp +// +// 1 3/13/06 1:57a Felixp +// +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: MemoryDiscovered.h +// +// Description: +// +//<AMI_FHDR_END> +//********************************************************************** +#ifndef __PERMANENT_MEMORY_INSTALLED_PPI__H__ +#define __PERMANENT_MEMORY_INSTALLED_PPI__H__ +#ifdef __cplusplus +extern "C" { +#endif +#include <PEI.h> +#define PEI_PERMANENT_MEMORY_INSTALLED_PPI_GUID EFI_PEI_PERMANENT_MEMORY_INSTALLED_PPI + +GUID_VARIABLE_DECLARATION(gPeiMemoryDiscoveredPpiGuid, PEI_PERMANENT_MEMORY_INSTALLED_PPI_GUID); +/****** DO NOT WRITE BELOW THIS LINE *******/ +#ifdef __cplusplus +} +#endif +#endif +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** diff --git a/Core/PPI/SectionExtraction.h b/Core/PPI/SectionExtraction.h new file mode 100644 index 0000000..0c022b6 --- /dev/null +++ b/Core/PPI/SectionExtraction.h @@ -0,0 +1,59 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + + SectionExtraction.h + +Abstract: + + Section Extraction PPI as defined in Tiano + +--*/ + +#ifndef _SECTION_EXTRACTION_PPI_H_ +#define _SECTION_EXTRACTION_PPI_H_ + +#define EFI_PEI_SECTION_EXTRACTION_PPI_GUID \ + { \ + 0x4F89E208, 0xE144, 0x4804, 0x9E, 0xC8, 0x0F, 0x89, 0x4F, 0x7E, 0x36, 0xD7 \ + } + +EFI_FORWARD_DECLARATION (EFI_PEI_SECTION_EXTRACTION_PPI); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_GET_SECTION) ( + IN EFI_PEI_SERVICES **PeiServices, + IN EFI_PEI_SECTION_EXTRACTION_PPI * This, + IN EFI_SECTION_TYPE * SectionType, + IN EFI_GUID * SectionDefinitionGuid, OPTIONAL + IN UINTN SectionInstance, + IN VOID **Buffer, + IN OUT UINT32 *BufferSize, + OUT UINT32 *AuthenticationStatus + ); + +// +// Bit values for AuthenticationStatus +// +#define EFI_PEI_AUTH_STATUS_PLATFORM_OVERRIDE 0x01 +#define EFI_PEI_AUTH_STATUS_IMAGE_SIGNED 0x02 +#define EFI_PEI_AUTH_STATUS_NOT_TESTED 0x04 +#define EFI_PEI_AUTH_STATUS_TEST_FAILED 0x08 + +typedef struct _EFI_PEI_SECTION_EXTRACTION_PPI { + EFI_PEI_GET_SECTION PeiGetSection; +} EFI_PEI_SECTION_EXTRACTION_PPI; + +GUID_VARIABLE_DECLARATION(gPeiSectionExtractionPpiGuid, EFI_PEI_SECTION_EXTRACTION_PPI_GUID); + +#endif diff --git a/Core/PPI/Security.h b/Core/PPI/Security.h new file mode 100644 index 0000000..fba6a6f --- /dev/null +++ b/Core/PPI/Security.h @@ -0,0 +1,83 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** + +//********************************************************************** +// $Header: /Alaska/SOURCE/Core/EDK/PPI/Security.h 1 5/19/06 11:28p Felixp $ +// +// $Revision: 1 $ +// +// $Date: 5/19/06 11:28p $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Core/EDK/PPI/Security.h $ +// +// 1 5/19/06 11:28p Felixp +// +// 1 3/13/06 1:57a Felixp +// +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: Security.h +// +// Description: +// +//<AMI_FHDR_END> +//********************************************************************** +#ifndef __SECURITY_PPI_H__ +#define __SECURITY_PPI_H__ +#ifdef __cplusplus +extern "C" { +#endif +#include <PEI.h> +#include <FFS.h> + +#define PEI_SECURITY_PPI_GUID \ + { 0x1388066e, 0x3a57, 0x4efa, 0x98, 0xf3, 0xc1, 0x2f, 0x3a, 0x95, 0x8a, 0x29 } + +typedef struct _PEI_SECURITY_PPI PEI_SECURITY_PPI; + +typedef EFI_STATUS (EFIAPI *PEI_SECURITY_AUTHENTICATION_STATE)( + IN EFI_PEI_SERVICES **PeiServices, + IN PEI_SECURITY_PPI *This, + IN UINT32 AuthenticationStatus, + IN EFI_FFS_FILE_HEADER *FfsFileHeader, + IN OUT BOOLEAN *StartCrisisRecovery +); + +struct _PEI_SECURITY_PPI { + PEI_SECURITY_AUTHENTICATION_STATE AuthenticationState; +}; + +GUID_VARIABLE_DECLARATION(gPeiSecurityPpiGuid, PEI_SECURITY_PPI_GUID); + +/****** DO NOT WRITE BELOW THIS LINE *******/ +#ifdef __cplusplus +} +#endif +#endif +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//**********************************************************************
\ No newline at end of file diff --git a/Core/PPI/Security2.h b/Core/PPI/Security2.h new file mode 100644 index 0000000..ff4e4d1 --- /dev/null +++ b/Core/PPI/Security2.h @@ -0,0 +1,54 @@ +/*++ + +Copyright (c) 2007, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + + Security2.h + +Abstract: + + PI 1.0 spec definition. + +--*/ + + +#ifndef __SECURITY2_PPI_H__ +#define __SECURITY2_PPI_H__ + +#if defined(PI_SPECIFICATION_VERSION) && PI_SPECIFICATION_VERSION >= 0x00010000 + +#define EFI_PEI_SECURITY2_PPI_GUID \ + { 0xdcd0be23, 0x9586, 0x40f4, 0xb6, 0x43, 0x6, 0x52, 0x2c, 0xed, 0x4e, 0xde} + + +EFI_FORWARD_DECLARATION (EFI_PEI_SECURITY2_PPI); + +typedef +EFI_STATUS +(EFIAPI *EFI_PEI_SECURITY_AUTHENTICATION_STATE) ( + IN CONST EFI_PEI_SERVICES **PeiServices, + IN CONST EFI_PEI_SECURITY2_PPI *This, + IN UINT32 AuthenticationStatus, + IN EFI_PEI_FV_HANDLE FvHandle, + IN EFI_PEI_FILE_HANDLE FileHandle, + IN OUT BOOLEAN *DeferExection + ); + +typedef struct _EFI_PEI_SECURITY2_PPI { + EFI_PEI_SECURITY_AUTHENTICATION_STATE AuthenticationState; +} EFI_PEI_SECURITY2_PPI; + + +GUID_VARIABLE_DECLARATION(gEfiPeiSecurity2PpiGuid, EFI_PEI_SECURITY2_PPI_GUID); + +#endif + +#endif diff --git a/Core/PPI/StatusCode.h b/Core/PPI/StatusCode.h new file mode 100644 index 0000000..13f4950 --- /dev/null +++ b/Core/PPI/StatusCode.h @@ -0,0 +1,56 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** + +//********************************************************************** +// $Header: /Alaska/SOURCE/Core/EDK/PPI/StatusCode.h 1 5/19/06 11:28p Felixp $ +// +// $Revision: 1 $ +// +// $Date: 5/19/06 11:28p $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Core/EDK/PPI/StatusCode.h $ +// +// 1 5/19/06 11:28p Felixp +// +// 1 3/13/06 1:57a Felixp +// +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: <This File Name> +// +// Description: +// +//<AMI_FHDR_END> +//********************************************************************** +// Sometimes equivalent Aptio4 and EDK Headers have different names. +// This file provides compatibility +//********************************************************************** +#ifndef GUID_VARIABLE_DEFINITION +#include <PPI/ProgressCode.h> +#endif +//********************************************************************** +//** ** +//** (C)Copyright 1985-2006, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//**********************************************************************
\ No newline at end of file |