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

4.104.114.84.9
Last change on this file since 73cdeb6 was 73cdeb6, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on Jul 4, 2007 at 12:25:49 PM

merged individual exception handler code to a common one.

  • Property mode set to 100644
File size: 1.3 KB
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.rtems.com/license/LICENSE.
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_5XX = 0x2,
24  PPC_603 = 0x3,
25  PPC_604 = 0x4,
26  PPC_603e = 0x6,
27  PPC_603ev = 0x7,
28  PPC_750 = 0x8,
29  PPC_604e = 0x9,
30  PPC_604r = 0xA,
31  PPC_7400 = 0xC,
32  PPC_405  = 0x2001,
33  PPC_7455 = 0x8001, /* Kate Feng */
34  PPC_7457 = 0x8002,
35  PPC_620 = 0x16,
36  PPC_860 = 0x50,
37  PPC_821 = PPC_860,
38  PPC_823 = PPC_860,
39  PPC_8260 = 0x81,
40  PPC_8240 = PPC_8260,
41  PPC_8245 = 0x8081,
42  PPC_603le = 0x8082, /* 603le core, in MGT5100 and MPC5200 */
43  PPC_PSIM = 0xfffe,  /* GDB PowerPC simulator -- fake version */
44  PPC_UNKNOWN = 0xffff
45} ppc_cpu_id_t;
46
47typedef unsigned short ppc_cpu_revision_t;
48
49extern ppc_cpu_id_t get_ppc_cpu_type ();
50extern ppc_cpu_id_t current_ppc_cpu;
51extern char *get_ppc_cpu_type_name(ppc_cpu_id_t cpu);
52extern ppc_cpu_revision_t get_ppc_cpu_revision ();
53extern ppc_cpu_revision_t current_ppc_revision;
54#endif /* ASM */
55
56#endif
Note: See TracBrowser for help on using the repository browser.