3 Copyright (c) 2015, 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 TempRamInitParamPtr A data structure to hold microcode parameter. 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 FSP_TEMP_RAM_INIT_PARAMS
*TempRamInitParamPtr
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 TempRamInitParamPtr A data structure to hold microcode parameter. It is saved in ESP.
59 @retval in saved in EAX - 0 means CAR initialization success.
60 other means CAR initialization fail.
65 IN FSP_TEMP_RAM_INIT_PARAMS
*TempRamInitParamPtr
69 This function check the signture of UPD.
71 @param[in] ApiIdx Internal index of the FSP API.
72 @param[in] ApiParam Parameter of the FSP API.
77 FspUpdSignatureCheck (