blob: 2cd57b4d64d9f4d0a70f340d1110bc03439a6426 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
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
Russell Kingef0498a2006-01-15 17:03:45 +000013#include <linux/compiler.h>
14
Linus Torvalds1da177e2005-04-16 15:20:36 -070015struct tag;
16struct meminfo;
17struct sys_timer;
18
19struct 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 */
Nicolas Pitre946d4932006-01-13 20:51:52 +000025 unsigned int __deprecated phys_ram; /* start of physical ram */
Linus Torvalds1da177e2005-04-16 15:20:36 -070026 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 */
Russell Kingf9bd6ea2005-07-04 10:43:36 +010031 unsigned long boot_params; /* tagged list */
Linus Torvalds1da177e2005-04-16 15:20:36 -070032
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 */
Russell Kingf339ab32005-10-28 14:29:43 +010053#define MACHINE_START(_type,_name) \
54static const struct machine_desc __mach_desc_##_type \
Russell Kingfb316902005-10-29 13:15:10 +010055 __attribute_used__ \
Ben Dooks9d0fd1e2005-09-20 16:45:20 +010056 __attribute__((__section__(".arch.info.init"))) = { \
Russell Kingf339ab32005-10-28 14:29:43 +010057 .nr = MACH_TYPE_##_type, \
Linus Torvalds1da177e2005-04-16 15:20:36 -070058 .name = _name,
59
Linus Torvalds1da177e2005-04-16 15:20:36 -070060#define MACHINE_END \
61};
62
63#endif