79964ac8 |
1 | /** @file\r |
2 | This file declares Boot Script Executer PPI.\r |
3 | \r |
4 | Copyright (c) 2007, Intel Corporation\r |
5 | All rights reserved. This program and the accompanying materials\r |
6 | are licensed and made available under the terms and conditions of the BSD License\r |
7 | which accompanies this distribution. The full text of the license may be found at\r |
8 | http://opensource.org/licenses/bsd-license.php\r |
9 | \r |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r |
12 | \r |
13 | Module Name: BootScriptExecuter.h\r |
14 | \r |
15 | @par Revision Reference:\r |
16 | This PPI is defined in Framework of EFI BootScript spec.\r |
17 | Version 0.91.\r |
18 | \r |
19 | **/\r |
20 | \r |
21 | #ifndef _PEI_BOOT_SCRIPT_EXECUTER_PPI_H\r |
22 | #define _PEI_BOOT_SCRIPT_EXECUTER_PPI_H\r |
23 | \r |
b80fbe85 |
24 | #include <PiPei.h>\r |
25 | \r |
79964ac8 |
26 | #define EFI_PEI_BOOT_SCRIPT_EXECUTER_PPI_GUID \\r |
27 | { \\r |
28 | 0xabd42895, 0x78cf, 0x4872, {0x84, 0x44, 0x1b, 0x5c, 0x18, 0x0b, 0xfb, 0xff } \\r |
29 | }\r |
30 | \r |
31 | typedef struct _EFI_PEI_BOOT_SCRIPT_EXECUTER_PPI EFI_PEI_BOOT_SCRIPT_EXECUTER_PPI;\r |
32 | \r |
33 | /**\r |
34 | Executes the Framework boot script table.\r |
35 | \r |
36 | @param PeiServices A pointer to the system PEI Services Table.\r |
37 | @param This A pointer to the EFI_PEI_BOOT_SCRIPT_EXECUTER_PPI instance.\r |
38 | @param Address The physical memory address where the table is stored.\r |
39 | It must be zero if the table to be executed is stored in a firmware volume file.\r |
40 | @param FvFile The firmware volume file name that contains the table to\r |
41 | be executed. It must be NULL if the table to be executed is stored in physical memory.\r |
42 | \r |
43 | @retval EFI_SUCCESS The boot script table was executed successfully.\r |
44 | @retval EFI_INVALID_PARAMETER Address is zero and FvFile is NULL.\r |
45 | @retval EFI_NOT_FOUND The file name specified in FvFile cannot be found.\r |
46 | @retval EFI_UNSUPPORTED The format of the boot script table is invalid.\r |
47 | Or An unsupported opcode occurred in the table.\r |
48 | Or There were opcode execution errors, such as an insufficient dependency.\r |
49 | \r |
50 | **/\r |
51 | typedef\r |
52 | EFI_STATUS\r |
53 | (EFIAPI *EFI_PEI_BOOT_SCRIPT_EXECUTE) (\r |
54 | IN EFI_PEI_SERVICES **PeiServices,\r |
55 | IN EFI_PEI_BOOT_SCRIPT_EXECUTER_PPI *This,\r |
56 | IN EFI_PHYSICAL_ADDRESS Address,\r |
57 | IN EFI_GUID *FvFile OPTIONAL\r |
58 | );\r |
59 | \r |
60 | /**\r |
61 | @par Ppi Description:\r |
62 | This PPI produces functions to interpret and execute the Framework boot script table.\r |
63 | \r |
64 | @param Execute\r |
65 | Executes a boot script table.\r |
66 | \r |
67 | **/\r |
68 | struct _EFI_PEI_BOOT_SCRIPT_EXECUTER_PPI {\r |
69 | EFI_PEI_BOOT_SCRIPT_EXECUTE Execute;\r |
70 | };\r |
71 | \r |
72 | extern EFI_GUID gEfiPeiBootScriptExecuterPpiGuid;\r |
73 | \r |
74 | #endif\r |