1 | /* motorola.h |
---|
2 | * |
---|
3 | * This include file describe the data structure and the functions implemented |
---|
4 | * by rtems to identify motorola boards. |
---|
5 | * |
---|
6 | * CopyRight (C) 1999 valette@crf.canon.fr |
---|
7 | * |
---|
8 | * The license and distribution terms for this file may be |
---|
9 | * found in found in the file LICENSE in this distribution or at |
---|
10 | * http://www.rtems.com/license/LICENSE. |
---|
11 | * |
---|
12 | * $Id$ |
---|
13 | */ |
---|
14 | |
---|
15 | #ifndef LIBBSP_POWERPC_SHARED_MOTOROLA_MOTOROLA_H |
---|
16 | #define LIBBSP_POWERPC_SHARED_MOTOROLA_MOTOROLA_H |
---|
17 | |
---|
18 | #include <bsp/residual.h> |
---|
19 | #include <bsp/pci.h> |
---|
20 | |
---|
21 | |
---|
22 | |
---|
23 | |
---|
24 | |
---|
25 | |
---|
26 | |
---|
27 | |
---|
28 | typedef enum { |
---|
29 | PREP_IBM = 0, |
---|
30 | PREP_Radstone = 1, |
---|
31 | PREP_Motorola = 2 |
---|
32 | }prep_t; |
---|
33 | |
---|
34 | typedef enum { |
---|
35 | MVME_2400 = 0, |
---|
36 | GENESIS = 1, |
---|
37 | POWERSTACK_E = 2, |
---|
38 | BLACKAWK = 3, |
---|
39 | OMAHA = 4, |
---|
40 | UTAH = 5, |
---|
41 | POWERSTACK_EX = 6, |
---|
42 | MESQUITE = 7, |
---|
43 | SITKA = 8, |
---|
44 | MESQUITE_W_HAC = 9, |
---|
45 | MTX_PLUS = 10, |
---|
46 | MTX_WO_PP = 11, |
---|
47 | MTX_W_PP = 12, |
---|
48 | MVME_2300 = 13, |
---|
49 | MVME_2300SC_2600 = 14, |
---|
50 | MVME_2600_W_MVME712M = 15, |
---|
51 | MVME_2600_2700_W_MVME761 = 16, |
---|
52 | MVME_3600_W_MVME712M = 17, |
---|
53 | MVME_3600_W_MVME761 = 18, |
---|
54 | MVME_1600 = 19, |
---|
55 | MOTOROLA_UNKNOWN = 255 |
---|
56 | } motorolaBoard; |
---|
57 | |
---|
58 | typedef enum { |
---|
59 | HOST_BRIDGE_RAVEN = 0, |
---|
60 | HOST_BRIDGE_HAWK = 1, |
---|
61 | HOST_BRIDGE_UNKNOWN = 255 |
---|
62 | }motorolaHostBridge; |
---|
63 | |
---|
64 | #define MOTOROLA_CPUTYPE_REG 0x800 |
---|
65 | #define MOTOROLA_BASETYPE_REG 0x803 |
---|
66 | |
---|
67 | extern prep_t checkPrepBoardType(RESIDUAL *res); |
---|
68 | extern prep_t currentPrepType; |
---|
69 | extern motorolaBoard getMotorolaBoard(); |
---|
70 | extern motorolaBoard currentBoard; |
---|
71 | extern const char* motorolaBoardToString(motorolaBoard); |
---|
72 | extern const struct _int_map *motorolaIntMap(motorolaBoard board); |
---|
73 | extern const void *motorolaIntSwizzle(motorolaBoard board); |
---|
74 | |
---|
75 | |
---|
76 | #endif /* LIBBSP_POWERPC_SHARED_MOTOROLA_MOTOROLA_H */ |
---|