binaryPI vendorcode: Remove HeapXXBuffer functions
The HeapAllocateBuffer and HeapDeallocateBuffer functions are not used. Change-Id: I491a796d87afd0e37051f9caabfff3f70d4d803c Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/22069 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
972d95cd7f
commit
583e0522f1
|
@ -50,18 +50,6 @@
|
|||
#include <FchDef.h>
|
||||
#include <FieldAccessors.h>
|
||||
|
||||
AGESA_STATUS
|
||||
HeapAllocateBuffer (
|
||||
IN OUT VOID *AllocateHeapParams,
|
||||
IN OUT VOID *StdHeader
|
||||
);
|
||||
|
||||
AGESA_STATUS
|
||||
HeapDeallocateBuffer (
|
||||
IN UINT32 BufferHandle,
|
||||
IN VOID *StdHeader
|
||||
);
|
||||
|
||||
CONST UINT32 ImageSignature = IMAGE_SIGNATURE;
|
||||
CONST UINT32 ModuleSignature = MODULE_SIGNATURE;
|
||||
CONST CHAR8 ModuleIdentifier[] = AGESA_ID;
|
||||
|
@ -524,53 +512,6 @@ ImcIdle (
|
|||
((FCH_DATA_BLOCK*)FchDataPtr)->StdHeader->Func = 0;
|
||||
}
|
||||
|
||||
// TODO This has to be removed
|
||||
AGESA_STATUS
|
||||
HeapAllocateBuffer (
|
||||
IN OUT VOID *AllocateHeapParams,
|
||||
IN OUT VOID *StdHeader
|
||||
)
|
||||
{
|
||||
MODULE_ENTRY Dispatcher = NULL;
|
||||
const AMD_MODULE_HEADER* module = agesawrapper_locate_module(ModuleIdentifier);
|
||||
|
||||
AMD_INTERFACE_PARAMS InterfaceParams = {};
|
||||
|
||||
if (!module) return AGESA_UNSUPPORTED;
|
||||
Dispatcher = module->ModuleDispatcher;
|
||||
|
||||
InterfaceParams.StdHeader = *(AMD_CONFIG_PARAMS*)StdHeader;
|
||||
InterfaceParams.StdHeader.Func = AMD_HEAP_ALLOCATE_BUFFER;
|
||||
|
||||
InterfaceParams.AllocationMethod = PreMemHeap;
|
||||
InterfaceParams.NewStructPtr = AllocateHeapParams;
|
||||
|
||||
return Dispatcher(&InterfaceParams);
|
||||
}
|
||||
|
||||
// TODO This has to be removed
|
||||
AGESA_STATUS
|
||||
HeapDeallocateBuffer (
|
||||
IN UINT32 BufferHandle,
|
||||
IN VOID *StdHeader
|
||||
)
|
||||
{
|
||||
MODULE_ENTRY Dispatcher = NULL;
|
||||
const AMD_MODULE_HEADER* module = agesawrapper_locate_module(ModuleIdentifier);
|
||||
|
||||
AMD_INTERFACE_PARAMS InterfaceParams = {};
|
||||
|
||||
if (!module) return AGESA_UNSUPPORTED;
|
||||
Dispatcher = module->ModuleDispatcher;
|
||||
|
||||
InterfaceParams.StdHeader = *(AMD_CONFIG_PARAMS*)StdHeader;
|
||||
InterfaceParams.StdHeader.Func = AMD_HEAP_DEALLOCATE_BUFFER;
|
||||
|
||||
InterfaceParams.NewStructPtr = &BufferHandle;
|
||||
|
||||
return Dispatcher(&InterfaceParams);
|
||||
}
|
||||
|
||||
/**********************************************************************
|
||||
* Interface call: AmdSetValue
|
||||
**********************************************************************/
|
||||
|
|
|
@ -52,19 +52,6 @@
|
|||
#include <console/console.h>
|
||||
#include <commonlib/loglevel.h>
|
||||
|
||||
// TODO These need to be replaced with calls to CreateStruct()
|
||||
AGESA_STATUS
|
||||
HeapAllocateBuffer (
|
||||
IN OUT VOID *AllocateHeapParams,
|
||||
IN OUT VOID *StdHeader
|
||||
);
|
||||
|
||||
AGESA_STATUS
|
||||
HeapDeallocateBuffer (
|
||||
IN UINT32 BufferHandle,
|
||||
IN VOID *StdHeader
|
||||
);
|
||||
|
||||
CONST UINT32 ImageSignature = IMAGE_SIGNATURE;
|
||||
CONST UINT32 ModuleSignature = MODULE_SIGNATURE;
|
||||
CONST CHAR8 ModuleIdentifier[] = AGESA_ID;
|
||||
|
@ -415,53 +402,6 @@ FchInitS3LateRestore (
|
|||
Dispatcher(FchDataPtr);
|
||||
}
|
||||
|
||||
// TODO This has to be removed
|
||||
AGESA_STATUS
|
||||
HeapAllocateBuffer (
|
||||
IN OUT VOID *AllocateHeapParams,
|
||||
IN OUT VOID *StdHeader
|
||||
)
|
||||
{
|
||||
MODULE_ENTRY Dispatcher = NULL;
|
||||
const AMD_MODULE_HEADER* module = agesawrapper_locate_module(ModuleIdentifier);
|
||||
|
||||
AMD_INTERFACE_PARAMS InterfaceParams = {};
|
||||
|
||||
if (!module) return AGESA_UNSUPPORTED;
|
||||
Dispatcher = module->ModuleDispatcher;
|
||||
|
||||
InterfaceParams.StdHeader = *(AMD_CONFIG_PARAMS*)StdHeader;
|
||||
InterfaceParams.StdHeader.Func = AMD_HEAP_ALLOCATE_BUFFER;
|
||||
|
||||
InterfaceParams.AllocationMethod = PreMemHeap;
|
||||
InterfaceParams.NewStructPtr = AllocateHeapParams;
|
||||
|
||||
return Dispatcher(&InterfaceParams);
|
||||
}
|
||||
|
||||
// TODO This has to be removed
|
||||
AGESA_STATUS
|
||||
HeapDeallocateBuffer (
|
||||
IN UINT32 BufferHandle,
|
||||
IN VOID *StdHeader
|
||||
)
|
||||
{
|
||||
MODULE_ENTRY Dispatcher = NULL;
|
||||
const AMD_MODULE_HEADER* module = agesawrapper_locate_module(ModuleIdentifier);
|
||||
|
||||
AMD_INTERFACE_PARAMS InterfaceParams = {};
|
||||
|
||||
if (!module) return AGESA_UNSUPPORTED;
|
||||
Dispatcher = module->ModuleDispatcher;
|
||||
|
||||
InterfaceParams.StdHeader = *(AMD_CONFIG_PARAMS*)StdHeader;
|
||||
InterfaceParams.StdHeader.Func = AMD_HEAP_DEALLOCATE_BUFFER;
|
||||
|
||||
InterfaceParams.NewStructPtr = &BufferHandle;
|
||||
|
||||
return Dispatcher(&InterfaceParams);
|
||||
}
|
||||
|
||||
/**********************************************************************
|
||||
* Interface call: AmdSetValue
|
||||
**********************************************************************/
|
||||
|
|
|
@ -49,19 +49,6 @@
|
|||
#include "FchDef.h"
|
||||
#include "amdlib.h"
|
||||
|
||||
// TODO These need to be replaced with calls to CreateStruct()
|
||||
AGESA_STATUS
|
||||
HeapAllocateBuffer (
|
||||
IN OUT VOID *AllocateHeapParams,
|
||||
IN OUT VOID *StdHeader
|
||||
);
|
||||
|
||||
AGESA_STATUS
|
||||
HeapDeallocateBuffer (
|
||||
IN UINT32 BufferHandle,
|
||||
IN VOID *StdHeader
|
||||
);
|
||||
|
||||
CONST UINT32 ImageSignature = IMAGE_SIGNATURE;
|
||||
CONST UINT32 ModuleSignature = MODULE_SIGNATURE;
|
||||
CONST CHAR8 ModuleIdentifier[] = AGESA_ID;
|
||||
|
@ -524,53 +511,6 @@ ImcIdle (
|
|||
((FCH_DATA_BLOCK*)FchDataPtr)->StdHeader->Func = 0;
|
||||
}
|
||||
|
||||
// TODO This has to be removed
|
||||
AGESA_STATUS
|
||||
HeapAllocateBuffer (
|
||||
IN OUT VOID *AllocateHeapParams,
|
||||
IN OUT VOID *StdHeader
|
||||
)
|
||||
{
|
||||
MODULE_ENTRY Dispatcher = NULL;
|
||||
const AMD_MODULE_HEADER* module = agesawrapper_locate_module(ModuleIdentifier);
|
||||
|
||||
AMD_INTERFACE_PARAMS InterfaceParams = {};
|
||||
|
||||
if (!module) return AGESA_UNSUPPORTED;
|
||||
Dispatcher = module->ModuleDispatcher;
|
||||
|
||||
InterfaceParams.StdHeader = *(AMD_CONFIG_PARAMS*)StdHeader;
|
||||
InterfaceParams.StdHeader.Func = AMD_HEAP_ALLOCATE_BUFFER;
|
||||
|
||||
InterfaceParams.AllocationMethod = PreMemHeap;
|
||||
InterfaceParams.NewStructPtr = AllocateHeapParams;
|
||||
|
||||
return Dispatcher(&InterfaceParams);
|
||||
}
|
||||
|
||||
// TODO This has to be removed
|
||||
AGESA_STATUS
|
||||
HeapDeallocateBuffer (
|
||||
IN UINT32 BufferHandle,
|
||||
IN VOID *StdHeader
|
||||
)
|
||||
{
|
||||
MODULE_ENTRY Dispatcher = NULL;
|
||||
const AMD_MODULE_HEADER* module = agesawrapper_locate_module(ModuleIdentifier);
|
||||
|
||||
AMD_INTERFACE_PARAMS InterfaceParams = {};
|
||||
|
||||
if (!module) return AGESA_UNSUPPORTED;
|
||||
Dispatcher = module->ModuleDispatcher;
|
||||
|
||||
InterfaceParams.StdHeader = *(AMD_CONFIG_PARAMS*)StdHeader;
|
||||
InterfaceParams.StdHeader.Func = AMD_HEAP_DEALLOCATE_BUFFER;
|
||||
|
||||
InterfaceParams.NewStructPtr = &BufferHandle;
|
||||
|
||||
return Dispatcher(&InterfaceParams);
|
||||
}
|
||||
|
||||
/**********************************************************************
|
||||
* Interface call: AmdSetValue
|
||||
**********************************************************************/
|
||||
|
|
Loading…
Reference in New Issue