diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-12-02 14:31:19 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-12-02 14:31:19 +0000 |
commit | acc25eec35e186abc118b9ca4f097e22fc6b4846 (patch) | |
tree | 7fa75871c51372e70cbd9cb50b0a2fab55cfa750 /c/src/lib/libcpu/powerpc/shared | |
parent | Merged of mcp750 and mvme2307 BSP by Eric Valette <valette@crf.canon.fr>. (diff) | |
download | rtems-acc25eec35e186abc118b9ca4f097e22fc6b4846.tar.bz2 |
Merged of mcp750 and mvme2307 BSP by Eric Valette <valette@crf.canon.fr>.
As part of this effort, the mpc750 libcpu code is now shared with the
ppc6xx.
Diffstat (limited to 'c/src/lib/libcpu/powerpc/shared')
-rw-r--r-- | c/src/lib/libcpu/powerpc/shared/Makefile.in | 2 | ||||
-rw-r--r-- | c/src/lib/libcpu/powerpc/shared/cpu.h | 24 |
2 files changed, 25 insertions, 1 deletions
diff --git a/c/src/lib/libcpu/powerpc/shared/Makefile.in b/c/src/lib/libcpu/powerpc/shared/Makefile.in index d752be4daa..d0078a7476 100644 --- a/c/src/lib/libcpu/powerpc/shared/Makefile.in +++ b/c/src/lib/libcpu/powerpc/shared/Makefile.in @@ -14,7 +14,7 @@ PROJECT_ROOT = @PROJECT_ROOT@ VPATH = @srcdir@ # C source names, if any, go here -- minus the .c -C_PIECES = +C_PIECES = cpuIdent C_FILES = $(C_PIECES:%=%.c) C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) diff --git a/c/src/lib/libcpu/powerpc/shared/cpu.h b/c/src/lib/libcpu/powerpc/shared/cpu.h index 8b886ffc2d..f071683972 100644 --- a/c/src/lib/libcpu/powerpc/shared/cpu.h +++ b/c/src/lib/libcpu/powerpc/shared/cpu.h @@ -169,6 +169,30 @@ n: #define SR14 14 #define SR15 15 +#ifndef ASM +typedef enum { + PPC_601 = 0x1, + PPC_603 = 0x3, + PPC_604 = 0x4, + PPC_603e = 0x6, + PPC_603ev = 0x7, + PPC_750 = 0x8, + PPC_604e = 0x9, + PPC_604r = 0xA, + PPC_620 = 0x16, + PPC_860 = 0x50, + PPC_821 = PPC_860, + PPC_UNKNOWN = 0xff +} ppc_cpu_id_t; + +typedef unsigned short ppc_cpu_revision_t; + +extern ppc_cpu_id_t get_ppc_cpu_type(); +extern ppc_cpu_id_t current_ppc_cpu; +extern ppc_cpu_revision_t get_ppc_cpu_revision(); +extern ppc_cpu_revision_t current_ppc_revision; +#endif + #define _CPU_MSR_GET( _msr_value ) \ do { \ _msr_value = 0; \ |