make oldconfig will rebuild these...
[linux-2.4.21-pre4.git] / include / asm-mips / bootinfo.h
1 /*
2  * This file is subject to the terms and conditions of the GNU General Public
3  * License.  See the file COPYING in the main directory of this archive
4  * for more details.
5  *
6  * Copyright (C) 1995, 1996 by Ralf Baechle, Andreas Busse,
7  *                             Stoned Elipot and Paul M. Antoine.
8  */
9 #ifndef _ASM_BOOTINFO_H
10 #define _ASM_BOOTINFO_H
11
12 #include <linux/types.h>
13
14 /*
15  * Values for machgroup
16  */
17 #define MACH_GROUP_UNKNOWN      0 /* whatever...                            */
18 #define MACH_GROUP_JAZZ         1 /* Jazz                                   */
19 #define MACH_GROUP_DEC          2 /* Digital Equipment                      */
20 #define MACH_GROUP_ARC          3 /* Wreckstation Tyne, rPC44, possibly other */
21 #define MACH_GROUP_SNI_RM       4 /* Siemens Nixdorf RM series              */
22 #define MACH_GROUP_ACN          5
23 #define MACH_GROUP_SGI          6 /* Silicon Graphics                       */
24 #define MACH_GROUP_COBALT       7 /* Cobalt servers                         */
25 #define MACH_GROUP_NEC_DDB      8 /* NEC DDB                                */
26 #define MACH_GROUP_BAGET        9 /* Baget                                  */
27 #define MACH_GROUP_COSINE      10 /* CoSine Orion                           */
28 #define MACH_GROUP_GALILEO     11 /* Galileo Eval Boards                    */
29 #define MACH_GROUP_MOMENCO     12 /* Momentum Boards                        */
30 #define MACH_GROUP_ITE         13 /* ITE Semi Eval Boards                   */
31 #define MACH_GROUP_PHILIPS     14
32 #define MACH_GROUP_GLOBESPAN   15 /* Globespan PVR Referrence Board         */
33 #define MACH_GROUP_SIBYTE      16 /* Sibyte Eval Boards                     */
34 #define MACH_GROUP_TOSHIBA     17 /* Toshiba Reference Systems TSBREF       */
35 #define MACH_GROUP_ALCHEMY     18 /* Alchemy Semi Eval Boards               */
36 #define MACH_GROUP_NEC_VR41XX  19 /* NEC Vr41xx based boards/gadgets        */
37 #define MACH_GROUP_HP_LJ       20 /* Hewlett Packard LaserJet               */
38
39 /*
40  * Valid machtype values for group unknown (low order halfword of mips_machtype)
41  */
42 #define MACH_UNKNOWN            0       /* whatever...                  */
43
44 /*
45  * Valid machtype values for group JAZZ
46  */
47 #define MACH_ACER_PICA_61       0       /* Acer PICA-61 (PICA1)         */
48 #define MACH_MIPS_MAGNUM_4000   1       /* Mips Magnum 4000 "RC4030"    */
49 #define MACH_OLIVETTI_M700      2       /* Olivetti M700-10 (-15 ??)    */
50
51 /*
52  * Valid machtype for group DEC
53  */
54 #define MACH_DSUNKNOWN          0
55 #define MACH_DS23100            1       /* DECstation 2100 or 3100      */
56 #define MACH_DS5100             2       /* DECstation 5100              */
57 #define MACH_DS5000_200         3       /* DECstation 5000/200          */
58 #define MACH_DS5000_1XX         4       /* DECstation 5000/120, 125, 133, 150 */
59 #define MACH_DS5000_XX          5       /* DECstation 5000/20, 25, 33, 50 */
60 #define MACH_DS5000_2X0         6       /* DECstation 5000/240, 260     */
61 #define MACH_DS5400             7       /* DECstation 5400              */
62 #define MACH_DS5500             8       /* DECstation 5500              */
63 #define MACH_DS5800             9       /* DECstation 5800              */
64
65 /*
66  * Valid machtype for group ARC
67  */
68 #define MACH_DESKSTATION_RPC44  0       /* Deskstation rPC44 */
69 #define MACH_DESKSTATION_TYNE   1       /* Deskstation Tyne */
70
71 /*
72  * Valid machtype for group SNI_RM
73  */
74 #define MACH_SNI_RM200_PCI      0       /* RM200/RM300/RM400 PCI series */
75
76 /*
77  * Valid machtype for group ACN
78  */
79 #define MACH_ACN_MIPS_BOARD     0       /* ACN MIPS single board        */
80
81 /*
82  * Valid machtype for group SGI
83  */
84 #define MACH_SGI_INDY           0       /* R4?K and R5K Indy workstations */
85 #define MACH_SGI_CHALLENGE_S    1       /* The Challenge S server */
86 #define MACH_SGI_INDIGO2        2       /* The Indigo2 system */
87 #define MACH_SGI_IP27           3       /* Origin 200, Origin 2000, Onyx 2 */
88 #define MACH_SGI_IP28           4       /* Indigo2 Impact */
89 #define MACH_SGI_IP32           5       /* O2 */
90
91 /*
92  * Valid machtype for group COBALT
93  */
94 #define MACH_COBALT_27           0      /* Proto "27" hardware */
95
96 /*
97  * Valid machtype for group NEC DDB
98  */
99 #define MACH_NEC_DDB5074        0       /* NEC DDB Vrc-5074 */
100 #define MACH_NEC_DDB5476        1       /* NEC DDB Vrc-5476 */
101 #define MACH_NEC_DDB5477        2       /* NEC DDB Vrc-5477 */
102 #define MACH_NEC_ROCKHOPPER     3       /* Rockhopper base board */
103 #define MACH_NEC_ROCKHOPPERII   4       /* Rockhopper II base board */
104
105 /*
106  * Valid machtype for group BAGET
107  */
108 #define MACH_BAGET201           0       /* BT23-201 */
109 #define MACH_BAGET202           1       /* BT23-202 */
110
111 /*
112  * Cosine boards.
113  */
114 #define MACH_COSINE_ORION       0
115
116 /*
117  * Valid machtype for group GALILEO
118  */
119 #define MACH_EV96100            0       /* EV96100 */
120 #define MACH_EV64120A           1       /* EV64120A */
121
122 /*
123  * Valid machtype for group MOMENCO
124  */
125 #define MACH_MOMENCO_OCELOT             0
126 #define MACH_MOMENCO_OCELOT_G           1
127
128 /*
129  * Valid machtype for group ITE
130  */
131 #define MACH_QED_4N_S01B        0       /* ITE8172 based eval board */
132
133 /*
134  * Valid machtype for group Globespan
135  */
136 #define MACH_IVR                0       /* IVR eval board */
137
138 /*
139  * Valid machtype for group PHILIPS
140  */
141 #define MACH_PHILIPS_NINO       0       /* Nino */
142 #define MACH_PHILIPS_VELO       1       /* Velo */
143
144 /*
145  * Valid machtype for group SIBYTE
146  */
147 #define MACH_SWARM              0
148
149 /*
150  * Valid machtypes for group Toshiba
151  */
152 #define MACH_PALLAS             0
153 #define MACH_TOPAS              1
154 #define MACH_JMR                2
155 #define MACH_TOSHIBA_JMR3927    3       /* JMR-TX3927 CPU/IO board */
156
157 /*
158  * Valid machtype for group Alchemy
159  */
160 #define MACH_PB1000             0       /* Au1000-based eval board */
161 #define MACH_PB1100             1       /* Au1100-based eval board */
162 #define MACH_PB1500             2       /* Au1500-based eval board */
163
164 /*
165  * Valid machtype for group NEC_VR41XX
166  */
167 #define MACH_NEC_OSPREY         0       /* Osprey eval board */
168 #define MACH_NEC_EAGLE          1       /* NEC Eagle/Hawk board */
169 #define MACH_ZAO_CAPCELLA       2       /* ZAO Networks Capcella */
170
171 #define CL_SIZE                 (256)
172
173 const char *get_system_type(void);
174
175 extern unsigned long mips_machtype;
176 extern unsigned long mips_machgroup;
177
178 #define BOOT_MEM_MAP_MAX        32
179 #define BOOT_MEM_RAM            1
180 #define BOOT_MEM_ROM_DATA       2
181 #define BOOT_MEM_RESERVED       3
182
183 /*
184  * A memory map that's built upon what was determined
185  * or specified on the command line.
186  */
187 struct boot_mem_map {
188         int nr_map;
189         struct {
190                 phys_t addr;    /* start of memory segment */
191                 phys_t size;    /* size of memory segment */
192                 long type;              /* type of memory segment */
193         } map[BOOT_MEM_MAP_MAX];
194 };
195
196 extern struct boot_mem_map boot_mem_map;
197
198 extern void add_memory_region(phys_t start, phys_t size, long type);
199
200 #endif /* _ASM_BOOTINFO_H */