diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-04-16 17:38:12 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-04-16 17:38:12 +0000 |
commit | f054b51cc3408f8dab96c5f9a0693956ccebcb1e (patch) | |
tree | f944469f526069f712e6fb0eb267a9f8618aa546 /c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h | |
parent | 2002-04-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-f054b51cc3408f8dab96c5f9a0693956ccebcb1e.tar.bz2 |
2002-04-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* shared/include/cpuIdent.h: New.
* shared/include/cpuIdent.c: Reflect having added cpuIdent.h.
* shared/include/cpu.h: Ditto.
* shared/include/Makefile.am: Add cpuIndent.h. Fix EXTRA_DIST.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h b/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h new file mode 100644 index 0000000000..7d608bfe33 --- /dev/null +++ b/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h @@ -0,0 +1,45 @@ +/* + * Copyright (C) 1999 Eric Valette (valette@crf.canon.fr) + * Canon Centre Recherche France. + * + * Added MPC8260 Andy Dachs <a.dachs@sstl.co.uk> + * Surrey Satellite Technology Limited + * + * + * The license and distribution terms for this file may be + * found in found in the file LICENSE in this distribution or at + * http://www.OARcorp.com/rtems/license.html. + * + * $Id$ + */ + +#ifndef _libcpu_cpuIdent_h +#define _libcpu_cpuIdent_h + +#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_8260 = 0x81, + 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 /* ASM */ + +#endif |