]>
Commit | Line | Data |
---|---|---|
b0d803fe | 1 | /** @file\r |
2 | MDE PI library functions and macros for PEI phase\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 | **/\r | |
14 | \r | |
15 | #ifndef __PEI_PI_LIB_H__\r | |
16 | #define __PEI_PI_LIB_H__\r | |
17 | \r | |
18 | #include <Pi/PiFirmwareFile.h>\r | |
19 | \r | |
166152e8 | 20 | /**\r |
21 | Install a EFI_PEI_FIRMWARE_VOLUME_INFO PPI to inform PEI core about the existence of a new Firmware Volume.\r | |
22 | \r | |
23 | The function allocate the EFI_PEI_PPI_DESCRIPTOR structure and update the fields accordingly to parameter passed\r | |
24 | in and install the PPI.\r | |
25 | \r | |
26 | @param FvStart Unique identifier of the format of the memory-mapped firmware volume. If NULL is specified,\r | |
27 | EFI_FIRMWARE_FILE_SYSTEM2_GUID is used as the Format GUID.\r | |
28 | @param FvInfo Points to a buffer which allows the EFI_PEI_FIRMWARE_VOLUME_PPI to\r | |
29 | process the volume. The format of this buffer is specific to the FvFormat. For\r | |
30 | memory-mapped firmware volumes, this typically points to the first byte of the\r | |
31 | firmware volume.\r | |
32 | @param FvInfoSize Size of the data provided by FvInfo. For memory-mapped firmware volumes, this is\r | |
33 | typically the size of the firmware volume.\r | |
34 | @param ParentFvName, ParentFileName If the firmware volume originally came from a firmware file, then these point to the\r | |
35 | parent firmware volume name and firmware volume file. If it did not originally come\r | |
36 | from a firmware file, these should be NULL\r | |
37 | \r | |
38 | @retval VOID\r | |
39 | \r | |
40 | **/\r | |
41 | \r | |
b0d803fe | 42 | VOID\r |
43 | EFIAPI\r | |
166152e8 | 44 | PiLibInstallFvInfoPpi (\r |
45 | IN EFI_GUID *FvFormat, OPTIONAL\r | |
46 | IN VOID *FvInfo,\r | |
47 | IN UINT32 FvInfoSize,\r | |
48 | IN EFI_GUID *ParentFvName, OPTIONAL\r | |
49 | IN EFI_GUID *PraentFileName OPTIONAL\r | |
b0d803fe | 50 | );\r |
51 | \r | |
52 | #endif\r | |
53 | \r |