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/S3Resume/S3Resume.c | 29 ++++++++++++++++ EDK/Foundation/Framework/Ppi/S3Resume/S3Resume.h | 44 ++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 EDK/Foundation/Framework/Ppi/S3Resume/S3Resume.c create mode 100644 EDK/Foundation/Framework/Ppi/S3Resume/S3Resume.h (limited to 'EDK/Foundation/Framework/Ppi/S3Resume') diff --git a/EDK/Foundation/Framework/Ppi/S3Resume/S3Resume.c b/EDK/Foundation/Framework/Ppi/S3Resume/S3Resume.c new file mode 100644 index 0000000..12b8e56 --- /dev/null +++ b/EDK/Foundation/Framework/Ppi/S3Resume/S3Resume.c @@ -0,0 +1,29 @@ +/*++ + + 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: + + S3Resume.c + +Abstract: + + Boot Script Executer PPI GUID as defined in Tiano + +--*/ + +#include "Tiano.h" +#include "PeiBind.h" +#include "PeiApi.h" +#include EFI_PPI_DEFINITION (S3Resume) + +EFI_GUID gPeiS3ResumePpiGuid = PEI_S3_RESUME_PPI_GUID; + +EFI_GUID_STRING(&gPeiS3ResumePpiGuid, "S3Resume", "S3 Resume PPI"); diff --git a/EDK/Foundation/Framework/Ppi/S3Resume/S3Resume.h b/EDK/Foundation/Framework/Ppi/S3Resume/S3Resume.h new file mode 100644 index 0000000..43a2afb --- /dev/null +++ b/EDK/Foundation/Framework/Ppi/S3Resume/S3Resume.h @@ -0,0 +1,44 @@ +/*++ + + 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: + + S3Resume.h + +Abstract: + + S3 Resume PPI + +--*/ + +#ifndef _PEI_S3_RESUME_PPI_H +#define _PEI_S3_RESUME_PPI_H + +#define PEI_S3_RESUME_PPI_GUID \ + { \ + 0x4426CCB2, 0xE684, 0x4a8a, 0xAE, 0x40, 0x20, 0xD4, 0xB0, 0x25, 0xB7, 0x10 \ + } + +EFI_FORWARD_DECLARATION (PEI_S3_RESUME_PPI); + +typedef +EFI_STATUS +(EFIAPI *PEI_S3_RESUME_PPI_RESTORE_CONFIG) ( + IN EFI_PEI_SERVICES **PeiServices + ); + +typedef struct _PEI_S3_RESUME_PPI { + PEI_S3_RESUME_PPI_RESTORE_CONFIG S3RestoreConfig; +} PEI_S3_RESUME_PPI; + +extern EFI_GUID gPeiS3ResumePpiGuid; + +#endif -- cgit v1.2.3