• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/arch/arm/include/asm/mach/
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
13struct tag;
14struct meminfo;
15struct sys_timer;
16
17struct machine_desc {
18	/*
19	 * Note! The first four elements are used
20	 * by assembler code in head.S, head-common.S
21	 */
22	unsigned int		nr;		/* architecture number	*/
23	unsigned int		nr_irqs;	/* number of IRQs */
24	unsigned int		phys_io;	/* start of physical io	*/
25	unsigned int		io_pg_offst;	/* byte offset for io
26						 * page tabe entry	*/
27
28	const char		*name;		/* architecture name	*/
29	unsigned long		boot_params;	/* tagged list		*/
30
31	unsigned int		video_start;	/* start of video RAM	*/
32	unsigned int		video_end;	/* end of video RAM	*/
33
34	unsigned int		reserve_lp0 :1;	/* never has lp0	*/
35	unsigned int		reserve_lp1 :1;	/* never has lp1	*/
36	unsigned int		reserve_lp2 :1;	/* never has lp2	*/
37	unsigned int		soft_reboot :1;	/* soft reboot		*/
38	void			(*fixup)(struct machine_desc *,
39					 struct tag *, char **,
40					 struct meminfo *);
41	void			(*reserve)(void);/* reserve mem blocks	*/
42	void			(*map_io)(void);/* IO mapping function	*/
43	void			(*init_irq)(void);
44	struct sys_timer	*timer;		/* system tick timer	*/
45	void			(*init_machine)(void);
46};
47
48/*
49 * Set of macros to define architecture features.  This is built into
50 * a table by the linker.
51 */
52#define MACHINE_START(_type,_name)			\
53static const struct machine_desc __mach_desc_##_type	\
54 __used							\
55 __attribute__((__section__(".arch.info.init"))) = {	\
56	.nr		= MACH_TYPE_##_type,		\
57	.name		= _name,
58
59#define MACHINE_END				\
60};
61
62#endif
63