RT-AC56 3.0.0.4.374.37 core
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / xtensa / include / asm / platform.h
blobec098b68fb9a8035e2907c557a342622bb7488d4
1 /*
2 * Platform specific functions
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.
8 * Copyright (C) 2001 - 2005 Tensilica Inc.
9 */
11 #ifndef _XTENSA_PLATFORM_H
12 #define _XTENSA_PLATFORM_H
14 #include <linux/types.h>
15 #include <linux/pci.h>
17 #include <asm/bootparam.h>
20 * platform_init is called before the mmu is initialized to give the
21 * platform a early hook-up. bp_tag_t is a list of configuration tags
22 * passed from the boot-loader.
24 extern void platform_init(bp_tag_t*);
27 * platform_setup is called from setup_arch with a pointer to the command-line
28 * string.
30 extern void platform_setup (char **);
33 * platform_init_irq is called from init_IRQ.
35 extern void platform_init_irq (void);
38 * platform_restart is called to restart the system.
40 extern void platform_restart (void);
43 * platform_halt is called to stop the system and halt.
45 extern void platform_halt (void);
48 * platform_power_off is called to stop the system and power it off.
50 extern void platform_power_off (void);
53 * platform_idle is called from the idle function.
55 extern void platform_idle (void);
58 * platform_heartbeat is called every HZ
60 extern void platform_heartbeat (void);
63 * platform_pcibios_init is called to allow the platform to setup the pci bus.
65 extern void platform_pcibios_init (void);
68 * platform_pcibios_fixup allows to modify the PCI configuration.
70 extern int platform_pcibios_fixup (void);
73 * platform_calibrate_ccount calibrates cpu clock freq (CONFIG_XTENSA_CALIBRATE)
75 extern void platform_calibrate_ccount (void);
77 #endif /* _XTENSA_PLATFORM_H */