making the kernel build with up to date compilers again, see https://bbs.archlinux...
[nao-ulib.git] / kernel / 2.6.29.6-aldebaran-rt / arch / arm / include / asm / mach / arch.h
blobc59842dc7cb8d8f2b3a3e140d3a17d8da575efe0
1 /*
2 * arch/arm/include/asm/mach/arch.h
4 * Copyright (C) 2000 Russell King
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
11 #ifndef __ASSEMBLY__
13 struct tag;
14 struct meminfo;
15 struct sys_timer;
17 struct machine_desc {
19 * Note! The first four elements are used
20 * by assembler code in head.S, head-common.S
22 unsigned int nr; /* architecture number */
23 unsigned int phys_io; /* start of physical io */
24 unsigned int io_pg_offst; /* byte offset for io
25 * page tabe entry */
27 const char *name; /* architecture name */
28 unsigned long boot_params; /* tagged list */
30 unsigned int video_start; /* start of video RAM */
31 unsigned int video_end; /* end of video RAM */
33 unsigned int reserve_lp0 :1; /* never has lp0 */
34 unsigned int reserve_lp1 :1; /* never has lp1 */
35 unsigned int reserve_lp2 :1; /* never has lp2 */
36 unsigned int soft_reboot :1; /* soft reboot */
37 void (*fixup)(struct machine_desc *,
38 struct tag *, char **,
39 struct meminfo *);
40 void (*map_io)(void);/* IO mapping function */
41 void (*init_irq)(void);
42 struct sys_timer *timer; /* system tick timer */
43 void (*init_machine)(void);
47 * Set of macros to define architecture features. This is built into
48 * a table by the linker.
50 #define MACHINE_START(_type,_name) \
51 static const struct machine_desc __mach_desc_##_type \
52 __used \
53 __attribute__((__section__(".arch.info.init"))) = { \
54 .nr = MACH_TYPE_##_type, \
55 .name = _name,
57 #define MACHINE_END \
60 #endif