]>
git.proxmox.com Git - mirror_edk2.git/blob - IntelFsp2Pkg/Include/Library/FspSecPlatformLib.h
3 Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>
4 SPDX-License-Identifier: BSD-2-Clause-Patent
8 #ifndef _FSP_SEC_PLATFORM_LIB_H_
9 #define _FSP_SEC_PLATFORM_LIB_H_
12 This function performs platform level initialization.
14 This function must be in ASM file, because stack is not established yet.
15 This function is optional. If a library instance does not provide this function, the default empty one will be used.
17 The callee should not use XMM6/XMM7.
18 The return address is saved in MM7.
20 @retval in saved in EAX - 0 means platform initialization success.
21 other means platform initialization fail.
30 This function loads Microcode.
32 This function must be in ASM file, because stack is not established yet.
33 This function is optional. If a library instance does not provide this function, the default one will be used.
35 The callee should not use XMM6/XMM7.
36 The return address is saved in MM7.
38 @param[in] FsptUpdDataPtr Address pointer to the FSPT_UPD data structure. It is saved in ESP.
40 @retval in saved in EAX - 0 means Microcode is loaded successfully.
41 other means Microcode is not loaded successfully.
46 IN VOID
*FsptUpdDataPtr
50 This function initializes the CAR.
52 This function must be in ASM file, because stack is not established yet.
54 The callee should not use XMM6/XMM7.
55 The return address is saved in MM7.
57 @param[in] FsptUpdDataPtr Address pointer to the FSPT_UPD data structure. It is saved in ESP.
59 @retval in saved in EAX - 0 means CAR initialization success.
60 other means CAR initialization fail.
65 IN VOID
*FsptUpdDataPtr
69 This function check the signature of UPD.
71 @param[in] ApiIdx Internal index of the FSP API.
72 @param[in] ApiParam Parameter of the FSP API.
77 FspUpdSignatureCheck (