soc/amd/common: Refactor AmdCreateStruct() use
AmdCreateStruct() and AmdReleaseStruct() are equally bad when it comes to lack of correct function declarations for definitions found in vendorcode binaryPI/AGESA.c. Replace these with calls that go through the common module_dispatch() functions. Change-Id: I611bcbe2a71fb65c8eb759a9dc74cbd9cb74136e Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31486 Reviewed-by: Richard Spiegel <richard.spiegel@silverbackltd.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Patrick Georgi
parent
03180212b7
commit
7f8a57e96a
@ -45,30 +45,3 @@ CONST UINT32 ImageSignature = IMAGE_SIGNATURE;
|
||||
CONST UINT32 ModuleSignature = MODULE_SIGNATURE;
|
||||
CONST CHAR8 ModuleIdentifier[8] = AGESA_ID;
|
||||
|
||||
/**********************************************************************
|
||||
* Interface call: AmdCreateStruct
|
||||
**********************************************************************/
|
||||
AGESA_STATUS
|
||||
AmdCreateStruct (
|
||||
IN OUT AMD_INTERFACE_PARAMS *InterfaceParams
|
||||
)
|
||||
{
|
||||
MODULE_ENTRY Dispatcher = agesa_get_dispatcher();
|
||||
InterfaceParams->StdHeader.Func = AMD_CREATE_STRUCT;
|
||||
if (!Dispatcher) return AGESA_UNSUPPORTED;
|
||||
return Dispatcher(InterfaceParams);
|
||||
}
|
||||
|
||||
/**********************************************************************
|
||||
* Interface call: AmdReleaseStruct
|
||||
**********************************************************************/
|
||||
AGESA_STATUS
|
||||
AmdReleaseStruct (
|
||||
IN OUT AMD_INTERFACE_PARAMS *InterfaceParams
|
||||
)
|
||||
{
|
||||
MODULE_ENTRY Dispatcher = agesa_get_dispatcher();
|
||||
InterfaceParams->StdHeader.Func = AMD_RELEASE_STRUCT;
|
||||
if (!Dispatcher) return AGESA_UNSUPPORTED;
|
||||
return Dispatcher(InterfaceParams);
|
||||
}
|
||||
|
Reference in New Issue
Block a user