14baa9922SRussell King /* 24baa9922SRussell King * arch/arm/include/asm/mach/arch.h 34baa9922SRussell King * 44baa9922SRussell King * Copyright (C) 2000 Russell King 54baa9922SRussell King * 64baa9922SRussell King * This program is free software; you can redistribute it and/or modify 74baa9922SRussell King * it under the terms of the GNU General Public License version 2 as 84baa9922SRussell King * published by the Free Software Foundation. 94baa9922SRussell King */ 104baa9922SRussell King 114baa9922SRussell King #ifndef __ASSEMBLY__ 124baa9922SRussell King 134baa9922SRussell King struct tag; 144baa9922SRussell King struct meminfo; 154baa9922SRussell King struct sys_timer; 164baa9922SRussell King 174baa9922SRussell King struct machine_desc { 184baa9922SRussell King /* 196451d778SNicolas Pitre * Note! The first two elements are used 204baa9922SRussell King * by assembler code in head.S, head-common.S 214baa9922SRussell King */ 224baa9922SRussell King unsigned int nr; /* architecture number */ 234baa9922SRussell King const char *name; /* architecture name */ 244baa9922SRussell King unsigned long boot_params; /* tagged list */ 254baa9922SRussell King 26d71e3eb5SNicolas Pitre unsigned int nr_irqs; /* number of IRQs */ 27d71e3eb5SNicolas Pitre 284baa9922SRussell King unsigned int video_start; /* start of video RAM */ 294baa9922SRussell King unsigned int video_end; /* end of video RAM */ 304baa9922SRussell King 314baa9922SRussell King unsigned int reserve_lp0 :1; /* never has lp0 */ 324baa9922SRussell King unsigned int reserve_lp1 :1; /* never has lp1 */ 334baa9922SRussell King unsigned int reserve_lp2 :1; /* never has lp2 */ 344baa9922SRussell King unsigned int soft_reboot :1; /* soft reboot */ 354baa9922SRussell King void (*fixup)(struct machine_desc *, 364baa9922SRussell King struct tag *, char **, 374baa9922SRussell King struct meminfo *); 3898c672cfSRussell King void (*reserve)(void);/* reserve mem blocks */ 394baa9922SRussell King void (*map_io)(void);/* IO mapping function */ 40*dec12e62SRussell King void (*init_early)(void); 414baa9922SRussell King void (*init_irq)(void); 424baa9922SRussell King struct sys_timer *timer; /* system tick timer */ 434baa9922SRussell King void (*init_machine)(void); 4452108641Seric miao #ifdef CONFIG_MULTI_IRQ_HANDLER 4552108641Seric miao void (*handle_irq)(struct pt_regs *); 4652108641Seric miao #endif 474baa9922SRussell King }; 484baa9922SRussell King 494baa9922SRussell King /* 508ff1443cSRussell King * Current machine - only accessible during boot. 518ff1443cSRussell King */ 528ff1443cSRussell King extern struct machine_desc *machine_desc; 538ff1443cSRussell King 548ff1443cSRussell King /* 554baa9922SRussell King * Set of macros to define architecture features. This is built into 564baa9922SRussell King * a table by the linker. 574baa9922SRussell King */ 584baa9922SRussell King #define MACHINE_START(_type,_name) \ 594baa9922SRussell King static const struct machine_desc __mach_desc_##_type \ 604baa9922SRussell King __used \ 614baa9922SRussell King __attribute__((__section__(".arch.info.init"))) = { \ 624baa9922SRussell King .nr = MACH_TYPE_##_type, \ 634baa9922SRussell King .name = _name, 644baa9922SRussell King 654baa9922SRussell King #define MACHINE_END \ 664baa9922SRussell King }; 674baa9922SRussell King 684baa9922SRussell King #endif 69