]>
Commit | Line | Data |
---|---|---|
b303605e MK |
1 | /** @file\r |
2 | Definition of Pei Core Structures and Services\r | |
3 | \r | |
4 | Copyright (c) 2013 Intel Corporation.\r | |
5 | \r | |
6 | This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions of the BSD License\r | |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | #ifndef _PEI_FV_SECURITY_H_\r | |
17 | #define _PEI_FV_SECURITY_H_\r | |
18 | \r | |
19 | #include <Ppi/FirmwareVolume.h>\r | |
20 | #include <Ppi/FirmwareVolumeInfo.h>\r | |
21 | #include <Library/DebugLib.h>\r | |
22 | #include <Library/PeiServicesLib.h>\r | |
23 | #include <Library/MemoryAllocationLib.h>\r | |
24 | \r | |
25 | /**\r | |
26 | Callback function to perform FV security checking on a FV Info PPI.\r | |
27 | \r | |
28 | @param PeiServices An indirect pointer to the EFI_PEI_SERVICES table published by the PEI Foundation\r | |
29 | @param NotifyDescriptor Address of the notification descriptor data structure.\r | |
30 | @param Ppi Address of the PPI that was installed.\r | |
31 | \r | |
32 | @retval EFI_SUCCESS\r | |
33 | \r | |
34 | **/\r | |
35 | EFI_STATUS\r | |
36 | EFIAPI\r | |
37 | FirmwareVolmeInfoPpiNotifySecurityCallback (\r | |
38 | IN EFI_PEI_SERVICES **PeiServices,\r | |
39 | IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor,\r | |
40 | IN VOID *Ppi\r | |
41 | );\r | |
42 | \r | |
43 | /**\r | |
44 | Authenticates the Firmware Volume\r | |
45 | \r | |
46 | @param CurrentFvAddress Pointer to the current Firmware Volume under consideration\r | |
47 | \r | |
48 | @retval EFI_SUCCESS Firmware Volume is legal\r | |
49 | \r | |
50 | **/\r | |
51 | EFI_STATUS\r | |
52 | PeiSecurityVerifyFv (\r | |
53 | IN EFI_FIRMWARE_VOLUME_HEADER *CurrentFvAddress\r | |
54 | );\r | |
55 | \r | |
56 | /**\r | |
57 | \r | |
58 | Entry point for the PEI Security PEIM\r | |
59 | Sets up a notification to perform PEI security checking\r | |
60 | \r | |
61 | @param FfsHeader Not used.\r | |
62 | @param PeiServices General purpose services available to every PEIM.\r | |
63 | \r | |
64 | @return EFI_SUCCESS PEI Security notification installed successfully.\r | |
65 | All others: PEI Security notification failed to install.\r | |
66 | \r | |
67 | **/\r | |
68 | EFI_STATUS\r | |
69 | PeiInitializeFvSecurity (\r | |
70 | VOID\r | |
71 | );\r | |
72 | \r | |
73 | #endif\r |