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 | typedef enum { |
---|
22 | PREP_IBM = 0, |
---|
23 | PREP_Radstone = 1, |
---|
24 | PREP_Motorola = 2 |
---|
25 | } prep_t; |
---|
26 | |
---|
27 | typedef enum { |
---|
28 | MVME_2400 = 0, |
---|
29 | GENESIS = 1, |
---|
30 | POWERSTACK_E = 2, |
---|
31 | BLACKAWK = 3, |
---|
32 | OMAHA = 4, |
---|
33 | UTAH = 5, |
---|
34 | POWERSTACK_EX = 6, |
---|
35 | MESQUITE = 7, |
---|
36 | SITKA = 8, |
---|
37 | MESQUITE_W_HAC = 9, |
---|
38 | MTX_PLUS = 10, |
---|
39 | MTX_WO_PP = 11, |
---|
40 | MTX_W_PP = 12, |
---|
41 | MVME_2300 = 13, |
---|
42 | MVME_2300SC_2600 = 14, |
---|
43 | MVME_2600_W_MVME712M = 15, |
---|
44 | MVME_2600_2700_W_MVME761 = 16, |
---|
45 | MVME_3600_W_MVME712M = 17, |
---|
46 | MVME_3600_W_MVME761 = 18, |
---|
47 | MVME_1600 = 19, |
---|
48 | /* In the table, slot 20 is the marker for end of automatic probe and scan */ |
---|
49 | MVME_2100 = 21, |
---|
50 | MOTOROLA_UNKNOWN = 255 |
---|
51 | } motorolaBoard; |
---|
52 | |
---|
53 | typedef enum { |
---|
54 | HOST_BRIDGE_RAVEN = 0, |
---|
55 | HOST_BRIDGE_HAWK = 1, |
---|
56 | HOST_BRIDGE_UNKNOWN = 255 |
---|
57 | } motorolaHostBridge; |
---|
58 | |
---|
59 | #define MOTOROLA_CPUTYPE_REG 0x800 |
---|
60 | #define MOTOROLA_BASETYPE_REG 0x803 |
---|
61 | |
---|
62 | extern prep_t checkPrepBoardType(RESIDUAL *res); |
---|
63 | extern prep_t currentPrepType; |
---|
64 | extern motorolaBoard getMotorolaBoard(); |
---|
65 | extern motorolaBoard currentBoard; |
---|
66 | extern const char* motorolaBoardToString(motorolaBoard); |
---|
67 | extern const struct _int_map *motorolaIntMap(motorolaBoard board); |
---|
68 | extern const void *motorolaIntSwizzle(motorolaBoard board); |
---|
69 | |
---|
70 | #endif /* LIBBSP_POWERPC_SHARED_MOTOROLA_MOTOROLA_H */ |
---|