Merge branch 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied...
[sfrench/cifs-2.6.git] / include / asm-arm / mach / arch.h
1 /*
2  *  linux/include/asm-arm/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 #include <linux/compiler.h>
14
15 struct tag;
16 struct meminfo;
17 struct sys_timer;
18
19 struct machine_desc {
20         /*
21          * Note! The first five elements are used
22          * by assembler code in head-armv.S
23          */
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      */
29
30         const char              *name;          /* architecture name    */
31         unsigned long           boot_params;    /* tagged list          */
32
33         unsigned int            video_start;    /* start of video RAM   */
34         unsigned int            video_end;      /* end of video RAM     */
35
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);
47 };
48
49 /*
50  * Set of macros to define architecture features.  This is built into
51  * a table by the linker.
52  */
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,
59
60 #define MACHINE_END                             \
61 };
62
63 #endif