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.
12 * The size of struct machine_desc
13 * (for assembler code)
15 #define SIZEOF_MACHINE_DESC 52
24 * Note! The first four elements are used
25 * by assembler code in head-armv.S
27 unsigned int nr; /* architecture number */
28 unsigned int phys_ram; /* start of physical ram */
29 unsigned int phys_io; /* start of physical io */
30 unsigned int io_pg_offst; /* byte offset for io
33 const char *name; /* architecture name */
34 unsigned int param_offset; /* parameter page */
36 unsigned int video_start; /* start of video RAM */
37 unsigned int video_end; /* end of video RAM */
39 unsigned int reserve_lp0 :1; /* never has lp0 */
40 unsigned int reserve_lp1 :1; /* never has lp1 */
41 unsigned int reserve_lp2 :1; /* never has lp2 */
42 unsigned int soft_reboot :1; /* soft reboot */
43 void (*fixup)(struct machine_desc *,
44 struct tag *, char **,
46 void (*map_io)(void);/* IO mapping function */
47 void (*init_irq)(void);
48 void (*init_machine)(void);
52 * Set of macros to define architecture features. This is built into
53 * a table by the linker.
55 #define MACHINE_START(_type,_name) \
56 const struct machine_desc __mach_desc_##_type \
57 __attribute__((__section__(".arch.info"))) = { \
58 .nr = MACH_TYPE_##_type, \
63 #define BOOT_MEM(_pram,_pio,_vio) \
66 .io_pg_offst = ((_vio)>>18)&0xfffc,
68 #define BOOT_PARAMS(_params) \
69 .param_offset = _params,
71 #define VIDEO(_start,_end) \
72 .video_start = _start, \
75 #define DISABLE_PARPORT(_n) \
81 #define FIXUP(_func) \
84 #define MAPIO(_func) \
87 #define INITIRQ(_func) \
90 #define INIT_MACHINE(_func) \
91 .init_machine = _func,