summaryrefslogtreecommitdiffstats
path: root/src/vendorcode/amd/cimx/sb800/AMDSBLIB.h
diff options
context:
space:
mode:
authorKerry She <kerry.she@amd.com>2011-05-07 08:43:40 +0000
committerKerry She <Kerry.She@amd.com>2011-05-07 08:43:40 +0000
commiteb995c209c81bcc0851335dd9bc3b1f38965271d (patch)
tree934f8170b4135f6ba4e25dd0b27a2b44bbcb192e /src/vendorcode/amd/cimx/sb800/AMDSBLIB.h
parent1c85c7794ebf7f98862d9c94541b02b6264c9a7f (diff)
downloadcoreboot-eb995c209c81bcc0851335dd9bc3b1f38965271d.tar.gz
coreboot-eb995c209c81bcc0851335dd9bc3b1f38965271d.tar.bz2
coreboot-eb995c209c81bcc0851335dd9bc3b1f38965271d.zip
SB800 CIMX code can share the AGESA V5 lib code,
some platform only use sb800 cimx code, not use AGESA v5 code. for such platform, one can compile the sb800 cimx and AGESA v5 lib code. Signed-off-by: Kerry She <kerry.she@amd.com> Acked-by: Marc Jones <marcj303@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6559 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/vendorcode/amd/cimx/sb800/AMDSBLIB.h')
-rw-r--r--src/vendorcode/amd/cimx/sb800/AMDSBLIB.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vendorcode/amd/cimx/sb800/AMDSBLIB.h b/src/vendorcode/amd/cimx/sb800/AMDSBLIB.h
index e5ecd3b58200..83722d8f5d42 100644
--- a/src/vendorcode/amd/cimx/sb800/AMDSBLIB.h
+++ b/src/vendorcode/amd/cimx/sb800/AMDSBLIB.h
@@ -104,3 +104,14 @@ AGESA_STATUS AmdSbDispatcher (IN void *pConfig);
*
*/
void AmdSbCopyMem (IN void* pDest, IN void* pSource, IN unsigned int Length);
+
+
+/* SB800 CIMx and AGESA V5 can share lib functions */
+unsigned char ReadIo8(IN unsigned short Address);
+unsigned short ReadIo16(IN unsigned short Address);
+unsigned int ReadIo32(IN unsigned short Address);
+void WriteIo8(IN unsigned short Address, IN unsigned char Data);
+void WriteIo16(IN unsigned short Address, IN unsigned short Data);
+void WriteIo32(IN unsigned short Address, IN unsigned int Data);
+void CpuidRead(IN unsigned int CpuidFcnAddress, OUT CPUID_DATA *Value);
+unsigned char ReadNumberOfCpuCores(void);