[MIPS] Add topology_init.
[linux-2.6/kmemtrace.git] / include / asm-arm / mach / arch.h
blob2cd57b4d64d9f4d0a70f340d1110bc03439a6426
1 /*
2 * linux/include/asm-arm/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 #include <linux/compiler.h>
15 struct tag;
16 struct meminfo;
17 struct sys_timer;
19 struct machine_desc {
21 * Note! The first five elements are used
22 * by assembler code in head-armv.S
24 unsigned int nr; /* architecture number */
25 unsigned int __deprecated phys_ram; /* start of physical ram */
26 unsigned int phys_io; /* start of physical io */
27 unsigned int io_pg_offst; /* byte offset for io
28 * page tabe entry */
30 const char *name; /* architecture name */
31 unsigned long boot_params; /* tagged list */
33 unsigned int video_start; /* start of video RAM */
34 unsigned int video_end; /* end of video RAM */
36 unsigned int reserve_lp0 :1; /* never has lp0 */
37 unsigned int reserve_lp1 :1; /* never has lp1 */
38 unsigned int reserve_lp2 :1; /* never has lp2 */
39 unsigned int soft_reboot :1; /* soft reboot */
40 void (*fixup)(struct machine_desc *,
41 struct tag *, char **,
42 struct meminfo *);
43 void (*map_io)(void);/* IO mapping function */
44 void (*init_irq)(void);
45 struct sys_timer *timer; /* system tick timer */
46 void (*init_machine)(void);
50 * Set of macros to define architecture features. This is built into
51 * a table by the linker.
53 #define MACHINE_START(_type,_name) \
54 static const struct machine_desc __mach_desc_##_type \
55 __attribute_used__ \
56 __attribute__((__section__(".arch.info.init"))) = { \
57 .nr = MACH_TYPE_##_type, \
58 .name = _name,
60 #define MACHINE_END \
63 #endif