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 
11 #ifndef _XTENSA_PLATFORM_H
12 #define _XTENSA_PLATFORM_H
13 
14 #include <linux/types.h>
15 #include <asm/bootparam.h>
16 
17 /*
18  * platform_init is called before the mmu is initialized to give the
19  * platform a early hook-up. bp_tag_t is a list of configuration tags
20  * passed from the boot-loader.
21  */
22 extern void platform_init(bp_tag_t*);
23 
24 /*
25  * platform_setup is called from setup_arch with a pointer to the command-line
26  * string.
27  */
28 extern void platform_setup (char **);
29 
30 /*
31  * platform_restart is called to restart the system.
32  */
33 extern void platform_restart (void);
34 
35 /*
36  * platform_halt is called to stop the system and halt.
37  */
38 extern void platform_halt (void);
39 
40 /*
41  * platform_power_off is called to stop the system and power it off.
42  */
43 extern void platform_power_off (void);
44 
45 /*
46  * platform_idle is called from the idle function.
47  */
48 extern void platform_idle (void);
49 
50 /*
51  * platform_heartbeat is called every HZ
52  */
53 extern void platform_heartbeat (void);
54 
55 /*
56  * platform_calibrate_ccount calibrates cpu clock freq (CONFIG_XTENSA_CALIBRATE)
57  */
58 extern void platform_calibrate_ccount (void);
59 
60 /*
61  * Flush and reset the mmu, simulate a processor reset, and
62  * jump to the reset vector.
63  */
64 void cpu_reset(void) __attribute__((noreturn));
65 
66 #endif	/* _XTENSA_PLATFORM_H */
67