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/FindFv | |
download | zprj-master.tar.xz |
Diffstat (limited to 'EDK/Foundation/Framework/Ppi/FindFv')
-rw-r--r-- | EDK/Foundation/Framework/Ppi/FindFv/FindFv.c | 29 | ||||
-rw-r--r-- | EDK/Foundation/Framework/Ppi/FindFv/FindFv.h | 51 |
2 files changed, 80 insertions, 0 deletions
diff --git a/EDK/Foundation/Framework/Ppi/FindFv/FindFv.c b/EDK/Foundation/Framework/Ppi/FindFv/FindFv.c new file mode 100644 index 0000000..91b06fd --- /dev/null +++ b/EDK/Foundation/Framework/Ppi/FindFv/FindFv.c @@ -0,0 +1,29 @@ +/*++ + +Copyright (c) 2004, 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: + + FindFv.c + +Abstract: + + FindFv PPI GUID as defined in Tiano + +--*/ + +#include "Tiano.h" +#include "PeiBind.h" +#include "PeiApi.h" +#include EFI_PPI_DEFINITION (FindFv) + +EFI_GUID gEfiFindFvPpiGuid = EFI_FIND_FV_PPI_GUID; + +EFI_GUID_STRING(&gEfiFindFvPpiGuid, "FindFv", "FindFv PPI"); diff --git a/EDK/Foundation/Framework/Ppi/FindFv/FindFv.h b/EDK/Foundation/Framework/Ppi/FindFv/FindFv.h new file mode 100644 index 0000000..da87115 --- /dev/null +++ b/EDK/Foundation/Framework/Ppi/FindFv/FindFv.h @@ -0,0 +1,51 @@ +/*++ + +Copyright (c) 2004, 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: + + FindFv.h + +Abstract: + + FindFv PPI as defined in Tiano + + Used to locate FVs that contain PEIMs in PEI + +--*/ + +#ifndef _FIND_FV_H_ +#define _FIND_FV_H_ + +#include "EfiFirmwareVolumeHeader.h" + +#define EFI_FIND_FV_PPI_GUID \ + { \ + 0x36164812, 0xa023, 0x44e5, 0xbd, 0x85, 0x5, 0xbf, 0x3c, 0x77, 0x0, 0xaa \ + } + +EFI_FORWARD_DECLARATION (EFI_FIND_FV_PPI); + +typedef +EFI_STATUS +(EFIAPI *EFI_FIND_FV_FINDFV) ( + IN EFI_FIND_FV_PPI * This, + IN EFI_PEI_SERVICES **PeiServices, + UINT8 *FvNumber, + EFI_FIRMWARE_VOLUME_HEADER **FVAddress + ); + +typedef struct _EFI_FIND_FV_PPI { + EFI_FIND_FV_FINDFV FindFv; +} EFI_FIND_FV_PPI; + +extern EFI_GUID gEfiFindFvPpiGuid; + +#endif |