RTEMS 7.0-rc1
Loading...
Searching...
No Matches
motorola.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
11/*
12 * Copyright (c) 1999 Eric Valette <eric.valette@free.fr>
13 *
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions
16 * are met:
17 * 1. Redistributions of source code must retain the above copyright
18 * notice, this list of conditions and the following disclaimer.
19 * 2. Redistributions in binary form must reproduce the above copyright
20 * notice, this list of conditions and the following disclaimer in the
21 * documentation and/or other materials provided with the distribution.
22 *
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
27 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 * POSSIBILITY OF SUCH DAMAGE.
34 */
35
36#ifndef LIBBSP_POWERPC_SHARED_MOTOROLA_MOTOROLA_H
37#define LIBBSP_POWERPC_SHARED_MOTOROLA_MOTOROLA_H
38
39#include <bsp/residual.h>
40#include <bsp/pci.h>
41
42typedef enum {
43 PREP_IBM = 0,
44 PREP_Radstone = 1,
45 PREP_Motorola = 2
46} prep_t;
47
48typedef enum {
49 MVME_2400 = 0,
50 MVME_2400_750 = 1,
51 GENESIS = 2,
52 POWERSTACK_E = 3,
53 BLACKAWK = 4,
54 OMAHA = 5,
55 UTAH = 6,
56 POWERSTACK_EX = 7,
57 MESQUITE = 8,
58 SITKA = 9,
59 MESQUITE_W_HAC = 10,
60 MTX_PLUS = 11,
61 MTX_WO_PP = 12,
62 MTX_W_PP = 13,
63 MVME_2300 = 14,
64 MVME_2300SC_2600 = 15,
65 MVME_2600_W_MVME712M = 16,
66 MVME_2600_2700_W_MVME761 = 17,
67 MVME_3600_W_MVME712M = 18,
68 MVME_3600_W_MVME761 = 19,
69 MVME_1600 = 20,
70 /* In the table, slot 21 is the marker for end of automatic probe and scan */
71 MVME_2100 = 22,
72 MOTOROLA_UNKNOWN = 255
73} motorolaBoard;
74
75typedef enum {
76 HOST_BRIDGE_RAVEN = 0,
77 HOST_BRIDGE_HAWK = 1,
78 HOST_BRIDGE_UNKNOWN = 255
79} motorolaHostBridge;
80
81#define MOTOROLA_CPUTYPE_REG 0x800
82#define MOTOROLA_BASETYPE_REG 0x803
83
84extern prep_t checkPrepBoardType(RESIDUAL *res);
85extern prep_t currentPrepType;
86extern motorolaBoard getMotorolaBoard(void);
87extern motorolaBoard currentBoard;
88extern const char* motorolaBoardToString(motorolaBoard);
89extern const struct _int_map *motorolaIntMap(motorolaBoard board);
90extern const void *motorolaIntSwizzle(motorolaBoard board);
91
92#endif /* LIBBSP_POWERPC_SHARED_MOTOROLA_MOTOROLA_H */
Definition: residual.h:294
Definition: pci.h:43