diff options
author | Kerry She <Kerry.she@amd.com> | 2011-01-01 17:44:07 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2011-01-01 17:44:07 +0000 |
commit | 799fed98ea57fc9632b7bf95b3f1d79519cbdd15 (patch) | |
tree | 94d053f98639980e357b9fba1b404bec153e052c /src/vendorcode/amd/cimx/lib/amdlib32.h | |
parent | 123edb0f688f2c6b7146929d6650751f6674a95c (diff) |
Add AMD SB800 southbridge CIMx code.
The main CIMx code is in a src/vendorcode directory and should not be
changed with regard to coding style etc. in order to remain easily syncable
with the "upstream" AMD code.
Signed-off-by: Kerry She <Kerry.she@amd.com>
Acked-by: Stefan Reinauer <stepan@coreboot.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6229 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/vendorcode/amd/cimx/lib/amdlib32.h')
-rw-r--r-- | src/vendorcode/amd/cimx/lib/amdlib32.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/vendorcode/amd/cimx/lib/amdlib32.h b/src/vendorcode/amd/cimx/lib/amdlib32.h new file mode 100644 index 0000000000..1d2fdde146 --- /dev/null +++ b/src/vendorcode/amd/cimx/lib/amdlib32.h @@ -0,0 +1,16 @@ +#ifndef _AMDLIB32_H_ +#define _AMDLIB32_H_ + +#include "cbtypes.h" +#include "Amd.h" + +UINT8 ReadIo8 (IN UINT16 port); +UINT16 ReadIo16 (IN UINT16 port); +UINT32 ReadIo32 (IN UINT16 port); +VOID WriteIo8 (IN UINT16 port, IN UINT8 value); +VOID WriteIo16 (IN UINT16 port, IN UINT16 value); +VOID WriteIo32 (IN UINT16 port, IN UINT32 value); +UINT64 ReadTSC(VOID); +VOID CpuidRead(IN UINT32 op, IN OUT SB_CPUID_DATA* Data); +UINT8 ReadNumberOfCpuCores(VOID); +#endif //_AMDLIB32_H_ |