diff options
Diffstat (limited to 'c/src/lib/libcpu/powerpc/shared/cpu.h')
-rw-r--r-- | c/src/lib/libcpu/powerpc/shared/cpu.h | 24 |
1 files changed, 24 insertions, 0 deletions
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; \ |