From f3093883f7336054f344072c5b086998dc5f72c2 Mon Sep 17 00:00:00 2001 From: Marshall Dawson Date: Sat, 15 Oct 2016 09:45:44 -0600 Subject: vendorcode/amd: Modify 0067F00 for binaryPI Make changes to the vendorcode files that allow them to work with the binaryPI. This fixes various compile issues and establishes a common calling convention between coreboot and AGESA. Original-Signed-off-by: Marc Jones Original-Signed-off-by: Marshall Dawson (cherry picked from commit f7ea2785d70bd6813b5b4d315b064802251d9557) Change-Id: Ie36228476a9dbd7b83f95828ca9c7252cecd8ec8 Signed-off-by: Marc Jones Reviewed-on: https://review.coreboot.org/17195 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/vendorcode/amd/pi/00670F00/Proc/Psp/PspBaseLib/PspBaseLib.c | 6 +++--- src/vendorcode/amd/pi/00670F00/Proc/Psp/PspBaseLib/PspBaseLib.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/vendorcode/amd/pi/00670F00/Proc/Psp') diff --git a/src/vendorcode/amd/pi/00670F00/Proc/Psp/PspBaseLib/PspBaseLib.c b/src/vendorcode/amd/pi/00670F00/Proc/Psp/PspBaseLib/PspBaseLib.c index 5c2410d7d4..e49fb789eb 100644 --- a/src/vendorcode/amd/pi/00670F00/Proc/Psp/PspBaseLib/PspBaseLib.c +++ b/src/vendorcode/amd/pi/00670F00/Proc/Psp/PspBaseLib/PspBaseLib.c @@ -155,7 +155,7 @@ typedef enum { UNSUPPORTED_PROGRAM = 0xFF, ///< Program ID for unsupported } PROGRAM_ID; -PROGRAM_ID +static PROGRAM_ID PspGetProgarmId ( VOID ) @@ -291,7 +291,7 @@ PspSoftWareFuseInfo ( return (FALSE); } -UINT32 Fletcher32 ( +static UINT32 Fletcher32 ( IN OUT UINT16 *data, IN UINTN words ) @@ -567,7 +567,7 @@ ReleasePspSmiRegMutex ( UINT8 -PspLibAccessWidth ( +static PspLibAccessWidth ( IN ACCESS_WIDTH AccessWidth ) { diff --git a/src/vendorcode/amd/pi/00670F00/Proc/Psp/PspBaseLib/PspBaseLib.h b/src/vendorcode/amd/pi/00670F00/Proc/Psp/PspBaseLib/PspBaseLib.h index e7f5a47d8d..3af9c3dd99 100644 --- a/src/vendorcode/amd/pi/00670F00/Proc/Psp/PspBaseLib/PspBaseLib.h +++ b/src/vendorcode/amd/pi/00670F00/Proc/Psp/PspBaseLib/PspBaseLib.h @@ -211,7 +211,7 @@ GetPspMboxStatus ( BOOLEAN -PspBarInitEarly (); +PspBarInitEarly (VOID); VOID PspLibPciIndirectRead ( @@ -230,7 +230,7 @@ PspLibPciIndirectWrite ( ); BOOLEAN -IsS3Resume (); +IsS3Resume (VOID); #endif // _AMD_LIB_H_ -- cgit v1.2.3