summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/shared/motorola/motorola.h
blob: ae453d1ac9afc1500ca32fb1b62b4ebd1de72ca2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* motorola.h
 *
 *  This include file describe the data structure and the functions implemented
 *  by rtems to identify motorola boards.
 *
 *  CopyRight (C) 1999 valette@crf.canon.fr
 *
 *  The license and distribution terms for this file may be
 *  found in found in the file LICENSE in this distribution or at
 *  http://www.rtems.com/license/LICENSE.
 *
 *  $Id$
 */

#ifndef LIBBSP_POWERPC_SHARED_MOTOROLA_MOTOROLA_H
#define LIBBSP_POWERPC_SHARED_MOTOROLA_MOTOROLA_H

#include <bsp/residual.h>
#include <bsp/pci.h>








typedef enum {
  PREP_IBM 	= 0,
  PREP_Radstone = 1,
  PREP_Motorola = 2
}prep_t;

typedef enum {
  MVME_2400 			= 0,
  GENESIS   			= 1,
  POWERSTACK_E			= 2,
  BLACKAWK			= 3,
  OMAHA				= 4,
  UTAH				= 5,
  POWERSTACK_EX			= 6,
  MESQUITE			= 7,
  SITKA				= 8,
  MESQUITE_W_HAC		= 9,
  MTX_PLUS			= 10,
  MTX_WO_PP			= 11,
  MTX_W_PP			= 12,
  MVME_2300			= 13,
  MVME_2300SC_2600		= 14,
  MVME_2600_W_MVME712M		= 15,
  MVME_2600_2700_W_MVME761	= 16,
  MVME_3600_W_MVME712M		= 17,
  MVME_3600_W_MVME761		= 18,
  MVME_1600			= 19,
  MOTOROLA_UNKNOWN		= 255
} motorolaBoard;

typedef enum {
  HOST_BRIDGE_RAVEN	= 0,
  HOST_BRIDGE_HAWK	= 1,
  HOST_BRIDGE_UNKNOWN	= 255
}motorolaHostBridge;
  
#define MOTOROLA_CPUTYPE_REG	0x800
#define MOTOROLA_BASETYPE_REG	0x803  

extern prep_t 			checkPrepBoardType(RESIDUAL *res);
extern prep_t 			currentPrepType;
extern motorolaBoard		getMotorolaBoard();
extern motorolaBoard		currentBoard;
extern const char*		motorolaBoardToString(motorolaBoard);
extern const struct _int_map    *motorolaIntMap(motorolaBoard board);
extern const void               *motorolaIntSwizzle(motorolaBoard board);


#endif /* LIBBSP_POWERPC_SHARED_MOTOROLA_MOTOROLA_H */