]>
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 | |
0eb3de2e | 6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
b303605e MK |
7 | \r |
8 | **/\r | |
9 | \r | |
10 | #ifndef _PEI_FV_SECURITY_H_\r | |
11 | #define _PEI_FV_SECURITY_H_\r | |
12 | \r | |
13 | #include <Ppi/FirmwareVolume.h>\r | |
14 | #include <Ppi/FirmwareVolumeInfo.h>\r | |
15 | #include <Library/DebugLib.h>\r | |
16 | #include <Library/PeiServicesLib.h>\r | |
17 | #include <Library/MemoryAllocationLib.h>\r | |
18 | \r | |
19 | /**\r | |
20 | Callback function to perform FV security checking on a FV Info PPI.\r | |
21 | \r | |
22 | @param PeiServices An indirect pointer to the EFI_PEI_SERVICES table published by the PEI Foundation\r | |
23 | @param NotifyDescriptor Address of the notification descriptor data structure.\r | |
24 | @param Ppi Address of the PPI that was installed.\r | |
25 | \r | |
26 | @retval EFI_SUCCESS\r | |
27 | \r | |
28 | **/\r | |
29 | EFI_STATUS\r | |
30 | EFIAPI\r | |
31 | FirmwareVolmeInfoPpiNotifySecurityCallback (\r | |
32 | IN EFI_PEI_SERVICES **PeiServices,\r | |
33 | IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor,\r | |
34 | IN VOID *Ppi\r | |
35 | );\r | |
36 | \r | |
37 | /**\r | |
38 | Authenticates the Firmware Volume\r | |
39 | \r | |
40 | @param CurrentFvAddress Pointer to the current Firmware Volume under consideration\r | |
41 | \r | |
42 | @retval EFI_SUCCESS Firmware Volume is legal\r | |
43 | \r | |
44 | **/\r | |
45 | EFI_STATUS\r | |
46 | PeiSecurityVerifyFv (\r | |
47 | IN EFI_FIRMWARE_VOLUME_HEADER *CurrentFvAddress\r | |
48 | );\r | |
49 | \r | |
50 | /**\r | |
51 | \r | |
52 | Entry point for the PEI Security PEIM\r | |
53 | Sets up a notification to perform PEI security checking\r | |
54 | \r | |
55 | @param FfsHeader Not used.\r | |
56 | @param PeiServices General purpose services available to every PEIM.\r | |
57 | \r | |
58 | @return EFI_SUCCESS PEI Security notification installed successfully.\r | |
59 | All others: PEI Security notification failed to install.\r | |
60 | \r | |
61 | **/\r | |
62 | EFI_STATUS\r | |
63 | PeiInitializeFvSecurity (\r | |
64 | VOID\r | |
65 | );\r | |
66 | \r | |
67 | #endif\r |