arch.h 1.6 KB

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