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>
33 IN CONST VOID
*HobStart
37 * This function is to find a memory region which is the largest one below 4GB.
38 * It will be used as the firmware hoblist.
40 * @param VmmHobList Vmm passed hoblist which constains the memory information.
41 * @return EFI_SUCCESS Successfully construct the firmware hoblist.
42 * @return EFI_NOT_FOUND Cannot find a memory region to be the fw hoblist.
47 IN CONST VOID
*VmmHobList
51 * Construct the HobList in SEC phase.
53 * @return EFI_SUCCESS Successfully construct the firmware hoblist.
54 * @return EFI_NOT_FOUND Cannot find a memory region to be the fw hoblist.
64 @param[in] FvBase Base address of FV image.
65 @param[in] FvLength Length of FV image.
66 @param[in] PcrIndex Index of PCR
68 @retval EFI_SUCCESS Fv image is measured successfully
69 or it has been already measured.
70 @retval EFI_OUT_OF_RESOURCES No enough memory to log the new event.
71 @retval EFI_DEVICE_ERROR The command was unsuccessful.
77 IN EFI_PHYSICAL_ADDRESS FvBase
,