summaryrefslogtreecommitdiff
path: root/src/vendorcode
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2018-06-14 06:57:05 +0300
committerPatrick Georgi <pgeorgi@google.com>2019-05-06 10:26:25 +0000
commit85b2ed5438d5d42d00519114e385bf3ae2d56e8f (patch)
tree025e3947019b969f06ba1be1394cbbaf8b0d6235 /src/vendorcode
parent43fc38943da7839d2fe83bf7ca1b9c509c327dc0 (diff)
downloadcoreboot-85b2ed5438d5d42d00519114e385bf3ae2d56e8f.tar.xz
soc/amd/common: Introduce module_dispatch()
This change removes all the separate entrypoint dispatch functions as they all share the same pattern. Furthermore, none of the function definitions under vendorcode binaryPI/AGESA.c file have proper declarations, the ones compiler picks up from AGESA.h are for the internal implementations and with sanely organized headerfiles would not be exposed outside the build of AGESA at all. Change-Id: I0b72badc007565740c93b58743cfd048e8b42775 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31485 Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/vendorcode')
-rw-r--r--src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c154
1 files changed, 0 insertions, 154 deletions
diff --git a/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c b/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c
index 2efee4eb62..e17cedcb64 100644
--- a/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c
+++ b/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c
@@ -72,157 +72,3 @@ AmdReleaseStruct (
if (!Dispatcher) return AGESA_UNSUPPORTED;
return Dispatcher(InterfaceParams);
}
-
-/**********************************************************************
- * Interface call: AmdInitReset
- **********************************************************************/
-AGESA_STATUS
-AmdInitReset (
- IN OUT AMD_RESET_PARAMS *ResetParams
- )
-{
- MODULE_ENTRY Dispatcher = agesa_get_dispatcher();
- ResetParams->StdHeader.Func = AMD_INIT_RESET;
- if (!Dispatcher) return AGESA_UNSUPPORTED;
- return Dispatcher(ResetParams);
-}
-
-/**********************************************************************
- * Interface call: AmdInitEarly
- **********************************************************************/
-AGESA_STATUS
-AmdInitEarly (
- IN OUT AMD_EARLY_PARAMS *EarlyParams
- )
-{
- MODULE_ENTRY Dispatcher = agesa_get_dispatcher();
- EarlyParams->StdHeader.Func = AMD_INIT_EARLY;
- if (!Dispatcher) return AGESA_UNSUPPORTED;
- return Dispatcher(EarlyParams);
-}
-
-/**********************************************************************
- * Interface call: AmdInitPost
- **********************************************************************/
-AGESA_STATUS
-AmdInitPost (
- IN OUT AMD_POST_PARAMS *PostParams ///< Amd Cpu init param
- )
-{
- MODULE_ENTRY Dispatcher = agesa_get_dispatcher();
- PostParams->StdHeader.Func = AMD_INIT_POST;
- if (!Dispatcher) return AGESA_UNSUPPORTED;
- return Dispatcher(PostParams);
-}
-
-/**********************************************************************
- * Interface call: AmdInitEnv
- **********************************************************************/
-AGESA_STATUS
-AmdInitEnv (
- IN OUT AMD_ENV_PARAMS *EnvParams
- )
-{
- MODULE_ENTRY Dispatcher = agesa_get_dispatcher();
- EnvParams->StdHeader.Func = AMD_INIT_ENV;
- if (!Dispatcher) return AGESA_UNSUPPORTED;
- return Dispatcher(EnvParams);
-}
-
-/**********************************************************************
- * Interface call: AmdInitMid
- **********************************************************************/
-AGESA_STATUS
-AmdInitMid (
- IN OUT AMD_MID_PARAMS *MidParams
- )
-{
- MODULE_ENTRY Dispatcher = agesa_get_dispatcher();
- MidParams->StdHeader.Func = AMD_INIT_MID;
- if (!Dispatcher) return AGESA_UNSUPPORTED;
- return Dispatcher(MidParams);
-}
-
-/**********************************************************************
- * Interface call: AmdInitLate
- **********************************************************************/
-AGESA_STATUS
-AmdInitLate (
- IN OUT AMD_LATE_PARAMS *LateParams
- )
-{
- MODULE_ENTRY Dispatcher = agesa_get_dispatcher();
- LateParams->StdHeader.Func = AMD_INIT_LATE;
- if (!Dispatcher) return AGESA_UNSUPPORTED;
- return Dispatcher(LateParams);
-}
-
-/**********************************************************************
- * Interface call: AmdInitResume
- **********************************************************************/
-AGESA_STATUS
-AmdInitResume (
- IN AMD_RESUME_PARAMS *ResumeParams
- )
-{
- MODULE_ENTRY Dispatcher = agesa_get_dispatcher();
- ResumeParams->StdHeader.Func = AMD_INIT_RESUME;
- if (!Dispatcher) return AGESA_UNSUPPORTED;
- return Dispatcher(ResumeParams);
-}
-
-/**********************************************************************
- * Interface call: AmdS3LateRestore
- **********************************************************************/
-AGESA_STATUS
-AmdS3LateRestore (
- IN OUT AMD_S3LATE_PARAMS *S3LateParams
- )
-{
- MODULE_ENTRY Dispatcher = agesa_get_dispatcher();
- S3LateParams->StdHeader.Func = AMD_S3LATE_RESTORE;
- if (!Dispatcher) return AGESA_UNSUPPORTED;
- return Dispatcher(S3LateParams);
-}
-
-/**********************************************************************
- * Interface call: AmdS3FinalRestore
- **********************************************************************/
-AGESA_STATUS
-AmdS3FinalRestore (
- IN OUT AMD_S3FINAL_PARAMS *S3FinalParams
- )
-{
- MODULE_ENTRY Dispatcher = agesa_get_dispatcher();
- S3FinalParams->StdHeader.Func = AMD_S3FINAL_RESTORE;
- if (!Dispatcher) return AGESA_UNSUPPORTED;
- return Dispatcher(S3FinalParams);
-}
-
-/**********************************************************************
- * Interface call: AmdInitRtb
- **********************************************************************/
-AGESA_STATUS
-AmdInitRtb (
- IN OUT AMD_RTB_PARAMS *AmdInitRtbParams
- )
-{
- MODULE_ENTRY Dispatcher = agesa_get_dispatcher();
- AmdInitRtbParams->StdHeader.Func = AMD_INIT_RTB;
- if (!Dispatcher) return AGESA_UNSUPPORTED;
- return Dispatcher(AmdInitRtbParams);
-}
-
-/**********************************************************************
- * Interface call: AmdLateRunApTask
- **********************************************************************/
-AGESA_STATUS
-AmdLateRunApTask (
- IN AP_EXE_PARAMS *AmdApExeParams
-)
-{
- MODULE_ENTRY Dispatcher = agesa_get_dispatcher();
- AmdApExeParams->StdHeader.Func = AMD_LATE_RUN_AP_TASK;
- if (!Dispatcher) return AGESA_UNSUPPORTED;
- return Dispatcher(AmdApExeParams);
-}