arch.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. #ifndef __ASSEMBLY__
  11. #include <linux/compiler.h>
  12. struct tag;
  13. struct meminfo;
  14. struct sys_timer;
  15. struct machine_desc {
  16. /*
  17. * Note! The first five elements are used
  18. * by assembler code in head-armv.S
  19. */
  20. unsigned int nr; /* architecture number */
  21. unsigned int __deprecated phys_ram; /* start of physical ram */
  22. unsigned int phys_io; /* start of physical io */
  23. unsigned int io_pg_offst; /* byte offset for io
  24. * page tabe entry */
  25. const char *name; /* architecture name */
  26. unsigned long boot_params; /* tagged list */
  27. unsigned int video_start; /* start of video RAM */
  28. unsigned int video_end; /* end of video RAM */
  29. unsigned int reserve_lp0 :1; /* never has lp0 */
  30. unsigned int reserve_lp1 :1; /* never has lp1 */
  31. unsigned int reserve_lp2 :1; /* never has lp2 */
  32. unsigned int soft_reboot :1; /* soft reboot */
  33. void (*fixup)(struct machine_desc *,
  34. struct tag *, char **,
  35. struct meminfo *);
  36. void (*map_io)(void);/* IO mapping function */
  37. void (*init_irq)(void);
  38. struct sys_timer *timer; /* system tick timer */
  39. void (*init_machine)(void);
  40. };
  41. /*
  42. * Set of macros to define architecture features. This is built into
  43. * a table by the linker.
  44. */
  45. #define MACHINE_START(_type,_name) \
  46. static const struct machine_desc __mach_desc_##_type \
  47. __attribute_used__ \
  48. __attribute__((__section__(".arch.info.init"))) = { \
  49. .nr = MACH_TYPE_##_type, \
  50. .name = _name,
  51. #define MACHINE_END \
  52. };
  53. #endif