]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Library/PeilessStartupLib/PeilessStartupInternal.h
3 Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef PEILESS_STARTUP_INTERNAL_LIB_H_
10 #define PEILESS_STARTUP_INTERNAL_LIB_H_
13 #include <Library/BaseLib.h>
14 #include <Uefi/UefiSpec.h>
15 #include <Uefi/UefiBaseType.h>
16 #include <IndustryStandard/IntelTdx.h>
27 IN CONST VOID
*HobStart
31 * This function is to find a memory region which is the largest one below 4GB.
32 * It will be used as the firmware hoblist.
34 * @param VmmHobList Vmm passed hoblist which constains the memory information.
35 * @return EFI_SUCCESS Successfully construct the firmware hoblist.
36 * @return EFI_NOT_FOUND Cannot find a memory region to be the fw hoblist.
41 IN CONST VOID
*VmmHobList
45 * Construct the HobList in SEC phase.
47 * @return EFI_SUCCESS Successfully construct the firmware hoblist.
48 * @return EFI_NOT_FOUND Cannot find a memory region to be the fw hoblist.
56 Check the integrity of CFV data.
58 @param[in] TdxCfvBase - A pointer to CFV header
59 @param[in] TdxCfvSize - CFV data size
61 @retval TRUE - The CFV data is valid.
62 @retval FALSE - The CFV data is invalid.