1 /* 2 * arch/arm/include/asm/mach/arch.h 3 * 4 * Copyright (C) 2000 Russell King 5 * 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 */ 10 11 #ifndef __ASSEMBLY__ 12 13 struct tag; 14 struct meminfo; 15 struct sys_timer; 16 17 struct machine_desc { 18 /* 19 * Note! The first two elements are used 20 * by assembler code in head.S, head-common.S 21 */ 22 unsigned int nr; /* architecture number */ 23 const char *name; /* architecture name */ 24 unsigned long boot_params; /* tagged list */ 25 26 unsigned int nr_irqs; /* number of IRQs */ 27 28 unsigned int video_start; /* start of video RAM */ 29 unsigned int video_end; /* end of video RAM */ 30 31 unsigned int reserve_lp0 :1; /* never has lp0 */ 32 unsigned int reserve_lp1 :1; /* never has lp1 */ 33 unsigned int reserve_lp2 :1; /* never has lp2 */ 34 unsigned int soft_reboot :1; /* soft reboot */ 35 void (*fixup)(struct machine_desc *, 36 struct tag *, char **, 37 struct meminfo *); 38 void (*reserve)(void);/* reserve mem blocks */ 39 void (*map_io)(void);/* IO mapping function */ 40 void (*init_early)(void); 41 void (*init_irq)(void); 42 struct sys_timer *timer; /* system tick timer */ 43 void (*init_machine)(void); 44 #ifdef CONFIG_MULTI_IRQ_HANDLER 45 void (*handle_irq)(struct pt_regs *); 46 #endif 47 }; 48 49 /* 50 * Current machine - only accessible during boot. 51 */ 52 extern struct machine_desc *machine_desc; 53 54 /* 55 * Set of macros to define architecture features. This is built into 56 * a table by the linker. 57 */ 58 #define MACHINE_START(_type,_name) \ 59 static const struct machine_desc __mach_desc_##_type \ 60 __used \ 61 __attribute__((__section__(".arch.info.init"))) = { \ 62 .nr = MACH_TYPE_##_type, \ 63 .name = _name, 64 65 #define MACHINE_END \ 66 }; 67 68 #endif 69