From b7c51c9cf4864df6aabb99a1ae843becd577237c Mon Sep 17 00:00:00 2001 From: raywu Date: Fri, 15 Jun 2018 00:00:50 +0800 Subject: init. 1AQQW051 --- EDK/Foundation/Framework/Ppi/Security/Security.c | 28 ++++++++++++++ EDK/Foundation/Framework/Ppi/Security/Security.h | 48 ++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 EDK/Foundation/Framework/Ppi/Security/Security.c create mode 100644 EDK/Foundation/Framework/Ppi/Security/Security.h (limited to 'EDK/Foundation/Framework/Ppi/Security') diff --git a/EDK/Foundation/Framework/Ppi/Security/Security.c b/EDK/Foundation/Framework/Ppi/Security/Security.c new file mode 100644 index 0000000..9d18044 --- /dev/null +++ b/EDK/Foundation/Framework/Ppi/Security/Security.c @@ -0,0 +1,28 @@ +/*++ + +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: + + Security.c + +Abstract: + + Security Architectural Protocol PPI GUID as defined in Tiano + +--*/ + +#include "Tiano.h" +#include "Pei.h" +#include EFI_PPI_DEFINITION (Security) + +EFI_GUID gPeiSecurityPpiGuid = PEI_SECURITY_PPI_GUID; + +EFI_GUID_STRING(&gPeiSecurityPpiGuid, "Security PPI", "Security Arch PPI"); diff --git a/EDK/Foundation/Framework/Ppi/Security/Security.h b/EDK/Foundation/Framework/Ppi/Security/Security.h new file mode 100644 index 0000000..ec72ffa --- /dev/null +++ b/EDK/Foundation/Framework/Ppi/Security/Security.h @@ -0,0 +1,48 @@ +/*++ + +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: + + Security.h + +Abstract: + + Security Architectural PPI as defined in Tiano + +--*/ + +#ifndef _SECURITY_PPI_H_ +#define _SECURITY_PPI_H_ + +#define PEI_SECURITY_PPI_GUID \ + { \ + 0x1388066e, 0x3a57, 0x4efa, 0x98, 0xf3, 0xc1, 0x2f, 0x3a, 0x95, 0x8a, 0x29 \ + } + +EFI_FORWARD_DECLARATION (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 + ); + +typedef struct _PEI_SECURITY_PPI { + PEI_SECURITY_AUTHENTICATION_STATE AuthenticationState; +} PEI_SECURITY_PPI; + +extern EFI_GUID gPeiSecurityPpiGuid; + +#endif -- cgit v1.2.3