diff options
author | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
---|---|---|
committer | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
commit | b7c51c9cf4864df6aabb99a1ae843becd577237c (patch) | |
tree | eebe9b0d0ca03062955223097e57da84dd618b9a /EDK/Foundation/Framework/Ppi/BootScriptExecuter | |
download | zprj-master.tar.xz |
Diffstat (limited to 'EDK/Foundation/Framework/Ppi/BootScriptExecuter')
-rw-r--r-- | EDK/Foundation/Framework/Ppi/BootScriptExecuter/BootScriptExecuter.c | 29 | ||||
-rw-r--r-- | EDK/Foundation/Framework/Ppi/BootScriptExecuter/BootScriptExecuter.h | 50 |
2 files changed, 79 insertions, 0 deletions
diff --git a/EDK/Foundation/Framework/Ppi/BootScriptExecuter/BootScriptExecuter.c b/EDK/Foundation/Framework/Ppi/BootScriptExecuter/BootScriptExecuter.c new file mode 100644 index 0000000..bcb7d48 --- /dev/null +++ b/EDK/Foundation/Framework/Ppi/BootScriptExecuter/BootScriptExecuter.c @@ -0,0 +1,29 @@ +/*++ + +Copyright (c) 2001 - 2002, 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: + + BootScriptExecuter.c + +Abstract: + + Boot Script Executer PPI GUID as defined in EFI 2.0 + +--*/ + +#include "Tiano.h" +#include "PeiBind.h" +#include "PeiApi.h" +#include EFI_PPI_DEFINITION (BootScriptExecuter) + +EFI_GUID gPeiBootScriptExecuterPpiGuid = PEI_BOOT_SCRIPT_EXECUTER_PPI_GUID; + +EFI_GUID_STRING(&gPeiBootScriptExecuterPpiGuid, "BootScriptExecuter", "Boot Script Executer PPI"); diff --git a/EDK/Foundation/Framework/Ppi/BootScriptExecuter/BootScriptExecuter.h b/EDK/Foundation/Framework/Ppi/BootScriptExecuter/BootScriptExecuter.h new file mode 100644 index 0000000..72540f0 --- /dev/null +++ b/EDK/Foundation/Framework/Ppi/BootScriptExecuter/BootScriptExecuter.h @@ -0,0 +1,50 @@ +/*++ + +Copyright (c) 2001 - 2002, 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: + + BootScriptExecuter.h + +Abstract: + + Boot Script Executer PPI as defined in EFI 2.0 + +--*/ + +#ifndef _PEI_BOOT_SCRIPT_EXECUTER_PPI_H +#define _PEI_BOOT_SCRIPT_EXECUTER_PPI_H + +#define PEI_BOOT_SCRIPT_EXECUTER_PPI_GUID \ + { \ + 0xabd42895, 0x78cf, 0x4872, 0x84, 0x44, 0x1b, 0x5c, 0x18, 0x0b, 0xfb, 0xff \ + } + +EFI_FORWARD_DECLARATION (PEI_BOOT_SCRIPT_EXECUTER_PPI); + +#define PEI_BOOT_SCRIPT_EXECUTER_PPI_REVISION 0x00000001 + +typedef +EFI_STATUS +(EFIAPI *PEI_BOOT_SCRIPT_EXECUTE) ( + IN EFI_PEI_SERVICES **PeiServices, + IN PEI_BOOT_SCRIPT_EXECUTER_PPI * This, + IN EFI_PHYSICAL_ADDRESS Address, + IN EFI_GUID * FvFile OPTIONAL + ); + +typedef struct _PEI_BOOT_SCRIPT_EXECUTER_PPI { + UINT64 Revision; + PEI_BOOT_SCRIPT_EXECUTE Execute; +} PEI_BOOT_SCRIPT_EXECUTER_PPI; + +extern EFI_GUID gPeiBootScriptExecuterPpiGuid; + +#endif |