source: rtems/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h @ f054b51

4.104.114.84.95
Last change on this file since f054b51 was f054b51, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 16, 2002 at 5:38:12 PM

2002-04-13 Ralf Corsepius <corsepiu@…>

  • 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.
  • Property mode set to 100644
File size: 988 bytes
Line 
1/*
2 * Copyright (C) 1999  Eric Valette (valette@crf.canon.fr)
3 *                     Canon Centre Recherche France.
4 *
5 *  Added MPC8260 Andy Dachs <a.dachs@sstl.co.uk>
6 *  Surrey Satellite Technology Limited
7 *
8 *
9 *  The license and distribution terms for this file may be
10 *  found in found in the file LICENSE in this distribution or at
11 *  http://www.OARcorp.com/rtems/license.html.
12 *
13 *  $Id$
14 */
15
16#ifndef _libcpu_cpuIdent_h
17#define _libcpu_cpuIdent_h
18
19#ifndef ASM
20typedef enum
21{
22  PPC_601 = 0x1,
23  PPC_603 = 0x3,
24  PPC_604 = 0x4,
25  PPC_603e = 0x6,
26  PPC_603ev = 0x7,
27  PPC_750 = 0x8,
28  PPC_604e = 0x9,
29  PPC_604r = 0xA,
30  PPC_620 = 0x16,
31  PPC_860 = 0x50,
32  PPC_821 = PPC_860,
33  PPC_8260 = 0x81,
34  PPC_UNKNOWN = 0xff
35} ppc_cpu_id_t;
36
37typedef unsigned short ppc_cpu_revision_t;
38
39extern ppc_cpu_id_t get_ppc_cpu_type ();
40extern ppc_cpu_id_t current_ppc_cpu;
41extern ppc_cpu_revision_t get_ppc_cpu_revision ();
42extern ppc_cpu_revision_t current_ppc_revision;
43#endif /* ASM */
44
45#endif
Note: See TracBrowser for help on using the repository browser.