[PARISC] fix section mismatches in arch/parisc/kernel
[linux-2.6/mini2440.git] / include / asm-xtensa / platform.h
blob48135a9718b0d5f9da79c3098ab5d1538789306a
1 /*
2 * include/asm-xtensa/platform.h
4 * Platform specific functions
6 * This file is subject to the terms and conditions of the GNU General
7 * Public License. See the file "COPYING" in the main directory of
8 * this archive for more details.
10 * Copyright (C) 2001 - 2005 Tensilica Inc.
13 #ifndef _XTENSA_PLATFORM_H
14 #define _XTENSA_PLATFORM_H
16 #include <linux/types.h>
17 #include <linux/pci.h>
19 #include <asm/bootparam.h>
22 * platform_init is called before the mmu is initialized to give the
23 * platform a early hook-up. bp_tag_t is a list of configuration tags
24 * passed from the boot-loader.
26 extern void platform_init(bp_tag_t*);
29 * platform_setup is called from setup_arch with a pointer to the command-line
30 * string.
32 extern void platform_setup (char **);
35 * platform_init_irq is called from init_IRQ.
37 extern void platform_init_irq (void);
40 * platform_restart is called to restart the system.
42 extern void platform_restart (void);
45 * platform_halt is called to stop the system and halt.
47 extern void platform_halt (void);
50 * platform_power_off is called to stop the system and power it off.
52 extern void platform_power_off (void);
55 * platform_idle is called from the idle function.
57 extern void platform_idle (void);
60 * platform_heartbeat is called every HZ
62 extern void platform_heartbeat (void);
65 * platform_pcibios_init is called to allow the platform to setup the pci bus.
67 extern void platform_pcibios_init (void);
70 * platform_pcibios_fixup allows to modify the PCI configuration.
72 extern int platform_pcibios_fixup (void);
75 * platform_calibrate_ccount calibrates cpu clock freq (CONFIG_XTENSA_CALIBRATE)
77 extern void platform_calibrate_ccount (void);
80 * platform_get_rtc_time returns RTC seconds (returns 0 for no error)
82 extern int platform_get_rtc_time(time_t*);
85 * platform_set_rtc_time set RTC seconds (returns 0 for no error)
87 extern int platform_set_rtc_time(time_t);
90 #endif /* _XTENSA_PLATFORM_H */