platform.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Platform specific functions
  3. *
  4. * This file is subject to the terms and conditions of the GNU General
  5. * Public License. See the file "COPYING" in the main directory of
  6. * this archive for more details.
  7. *
  8. * Copyright (C) 2001 - 2005 Tensilica Inc.
  9. */
  10. #ifndef _XTENSA_PLATFORM_H
  11. #define _XTENSA_PLATFORM_H
  12. #include <linux/types.h>
  13. #include <asm/bootparam.h>
  14. /*
  15. * platform_init is called before the mmu is initialized to give the
  16. * platform a early hook-up. bp_tag_t is a list of configuration tags
  17. * passed from the boot-loader.
  18. */
  19. extern void platform_init(bp_tag_t*);
  20. /*
  21. * platform_setup is called from setup_arch with a pointer to the command-line
  22. * string.
  23. */
  24. extern void platform_setup (char **);
  25. /*
  26. * platform_restart is called to restart the system.
  27. */
  28. extern void platform_restart (void);
  29. /*
  30. * platform_halt is called to stop the system and halt.
  31. */
  32. extern void platform_halt (void);
  33. /*
  34. * platform_power_off is called to stop the system and power it off.
  35. */
  36. extern void platform_power_off (void);
  37. /*
  38. * platform_idle is called from the idle function.
  39. */
  40. extern void platform_idle (void);
  41. /*
  42. * platform_heartbeat is called every HZ
  43. */
  44. extern void platform_heartbeat (void);
  45. /*
  46. * platform_calibrate_ccount calibrates cpu clock freq (CONFIG_XTENSA_CALIBRATE)
  47. */
  48. extern void platform_calibrate_ccount (void);
  49. /*
  50. * Flush and reset the mmu, simulate a processor reset, and
  51. * jump to the reset vector.
  52. */
  53. void cpu_reset(void) __attribute__((noreturn));
  54. #endif /* _XTENSA_PLATFORM_H */