Merge branches 'pm-cpuidle' and 'pm-cpufreq'
[sfrench/cifs-2.6.git] / arch / powerpc / platforms / pseries / pseries.h
1 /*
2  * Copyright 2006 IBM Corporation.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version
7  * 2 of the License, or (at your option) any later version.
8  */
9
10 #ifndef _PSERIES_PSERIES_H
11 #define _PSERIES_PSERIES_H
12
13 #include <linux/interrupt.h>
14
15 struct device_node;
16
17 extern void request_event_sources_irqs(struct device_node *np,
18                                        irq_handler_t handler, const char *name);
19
20 #include <linux/of.h>
21
22 extern void __init fw_hypertas_feature_init(const char *hypertas,
23                                             unsigned long len);
24 extern void __init fw_vec5_feature_init(const char *hypertas,
25                                         unsigned long len);
26
27 struct pt_regs;
28
29 extern int pSeries_system_reset_exception(struct pt_regs *regs);
30 extern int pSeries_machine_check_exception(struct pt_regs *regs);
31
32 #ifdef CONFIG_SMP
33 extern void smp_init_pseries_mpic(void);
34 extern void smp_init_pseries_xics(void);
35 #else
36 static inline void smp_init_pseries_mpic(void) { };
37 static inline void smp_init_pseries_xics(void) { };
38 #endif
39
40 #ifdef CONFIG_KEXEC
41 extern void setup_kexec_cpu_down_xics(void);
42 extern void setup_kexec_cpu_down_mpic(void);
43 #else
44 static inline void setup_kexec_cpu_down_xics(void) { }
45 static inline void setup_kexec_cpu_down_mpic(void) { }
46 #endif
47
48 extern void pSeries_final_fixup(void);
49
50 /* Poweron flag used for enabling auto ups restart */
51 extern unsigned long rtas_poweron_auto;
52
53 /* Provided by HVC VIO */
54 extern void hvc_vio_init_early(void);
55
56 /* Dynamic logical Partitioning/Mobility */
57 extern void dlpar_free_cc_nodes(struct device_node *);
58 extern void dlpar_free_cc_property(struct property *);
59 extern struct device_node *dlpar_configure_connector(u32, struct device_node *);
60 extern int dlpar_attach_node(struct device_node *);
61 extern int dlpar_detach_node(struct device_node *);
62
63 /* PCI root bridge prepare function override for pseries */
64 struct pci_host_bridge;
65 int pseries_root_bridge_prepare(struct pci_host_bridge *bridge);
66
67 unsigned long pseries_memory_block_size(void);
68
69 #endif /* _PSERIES_PSERIES_H */