vc/amd/pi/00670F00: Remove HeapXXBuffer functions
The HeapAllocateBuffer and HEAPDeallocateBuffer functions are not used in Stoney Ridge, so get rid of them. Change-Id: I716d5c8957ced52c25fd501697111b1b0b263467 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/21848 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
parent
6d8ef24566
commit
51bfc594bb
|
@ -51,19 +51,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;
|
||||
|
@ -413,50 +400,3 @@ FchInitS3LateRestore (
|
|||
Dispatcher = module->ModuleDispatcher;
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue