platform.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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_idle is called from the idle function.
  27. */
  28. extern void platform_idle (void);
  29. /*
  30. * platform_calibrate_ccount calibrates cpu clock freq (CONFIG_XTENSA_CALIBRATE)
  31. */
  32. extern void platform_calibrate_ccount (void);
  33. /*
  34. * Flush and reset the mmu, simulate a processor reset, and
  35. * jump to the reset vector.
  36. */
  37. void cpu_reset(void) __attribute__((noreturn));
  38. #endif /* _XTENSA_PLATFORM_H */