MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-arm / mach / arch.h
blob7fbb72467948a374d0f1fa459d0df610246b5c2b
1 /*
2 * linux/include/asm-arm/mach/arch.h
4 * Copyright (C) 2000 Russell King
5 * Modified by Hyok S. Choi for uClinux, 2004
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
12 #ifndef __ASSEMBLY__
14 struct tag;
15 struct meminfo;
16 struct sys_timer;
18 struct machine_desc {
20 * Note! The first four elements are used
21 * by assembler code in head-armv.S
23 unsigned int nr; /* architecture number */
24 unsigned int phys_io; /* start of physical io */
25 unsigned int io_pg_offst; /* byte offset for io
26 * page tabe entry */
28 const char *name; /* architecture name */
29 unsigned long boot_params; /* tagged list */
31 unsigned int video_start; /* start of video RAM */
32 unsigned int video_end; /* end of video RAM */
34 unsigned int reserve_lp0 :1; /* never has lp0 */
35 unsigned int reserve_lp1 :1; /* never has lp1 */
36 unsigned int reserve_lp2 :1; /* never has lp2 */
37 unsigned int soft_reboot :1; /* soft reboot */
38 void (*fixup)(struct machine_desc *,
39 struct tag *, char **,
40 struct meminfo *);
41 void (*map_io)(void);/* IO mapping function */
42 void (*init_irq)(void);
43 struct sys_timer *timer; /* system tick timer */
44 void (*init_machine)(void);
48 * Set of macros to define architecture features. This is built into
49 * a table by the linker.
51 #define MACHINE_START(_type,_name) \
52 static const struct machine_desc __mach_desc_##_type \
53 __attribute_used__ \
54 __attribute__((__section__(".arch.info.init"))) = { \
55 .nr = MACH_TYPE_##_type, \
56 .name = _name,
58 #define MACHINE_END \
61 #endif