[CONNECTOR]: Update documentation to match reality.
[linux-2.6/verdex.git] / include / asm-xtensa / platform.h
blob36163894bc20be1f601ae36d7073f6063921df7f
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/config.h>
17 #include <linux/types.h>
18 #include <linux/pci.h>
20 #include <asm/bootparam.h>
23 * platform_init is called before the mmu is initialized to give the
24 * platform a early hook-up. bp_tag_t is a list of configuration tags
25 * passed from the boot-loader.
27 extern void platform_init(bp_tag_t*);
30 * platform_setup is called from setup_arch with a pointer to the command-line
31 * string.
33 extern void platform_setup (char **);
36 * platform_init_irq is called from init_IRQ.
38 extern void platform_init_irq (void);
41 * platform_restart is called to restart the system.
43 extern void platform_restart (void);
46 * platform_halt is called to stop the system and halt.
48 extern void platform_halt (void);
51 * platform_power_off is called to stop the system and power it off.
53 extern void platform_power_off (void);
56 * platform_idle is called from the idle function.
58 extern void platform_idle (void);
61 * platform_heartbeat is called every HZ
63 extern void platform_heartbeat (void);
66 * platform_pcibios_init is called to allow the platform to setup the pci bus.
68 extern void platform_pcibios_init (void);
71 * platform_pcibios_fixup allows to modify the PCI configuration.
73 extern int platform_pcibios_fixup (void);
76 * platform_calibrate_ccount calibrates cpu clock freq (CONFIG_XTENSA_CALIBRATE)
78 extern void platform_calibrate_ccount (void);
81 * platform_get_rtc_time returns RTC seconds (returns 0 for no error)
83 extern int platform_get_rtc_time(time_t*);
86 * platform_set_rtc_time set RTC seconds (returns 0 for no error)
88 extern int platform_set_rtc_time(time_t);
91 #endif /* _XTENSA_PLATFORM_H */