Commit | Line | Data |
---|---|---|
577830b0 ME |
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 | ||
32c96f77 MN |
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 | ||
20648974 NF |
20 | #include <linux/of.h> |
21 | ||
ca8ffc97 | 22 | extern void __init fw_feature_init(const char *hypertas, unsigned long len); |
577830b0 ME |
23 | |
24 | struct pt_regs; | |
25 | ||
26 | extern int pSeries_system_reset_exception(struct pt_regs *regs); | |
27 | extern int pSeries_machine_check_exception(struct pt_regs *regs); | |
28 | ||
8feaeca2 ME |
29 | #ifdef CONFIG_SMP |
30 | extern void smp_init_pseries_mpic(void); | |
31 | extern void smp_init_pseries_xics(void); | |
32 | #else | |
f7c0d13b SR |
33 | static inline void smp_init_pseries_mpic(void) { }; |
34 | static inline void smp_init_pseries_xics(void) { }; | |
8feaeca2 ME |
35 | #endif |
36 | ||
dce623e0 ME |
37 | #ifdef CONFIG_KEXEC |
38 | extern void setup_kexec_cpu_down_xics(void); | |
39 | extern void setup_kexec_cpu_down_mpic(void); | |
40 | #else | |
8c0238b3 ME |
41 | static inline void setup_kexec_cpu_down_xics(void) { } |
42 | static inline void setup_kexec_cpu_down_mpic(void) { } | |
dce623e0 ME |
43 | #endif |
44 | ||
3d5134ee BH |
45 | extern void pSeries_final_fixup(void); |
46 | ||
5d30bf30 MA |
47 | /* Poweron flag used for enabling auto ups restart */ |
48 | extern unsigned long rtas_poweron_auto; | |
49 | ||
21cf9133 ME |
50 | extern void find_udbg_vterm(void); |
51 | ||
20648974 NF |
52 | /* Dynamic logical Partitioning/Mobility */ |
53 | extern void dlpar_free_cc_nodes(struct device_node *); | |
54 | extern void dlpar_free_cc_property(struct property *); | |
55 | extern struct device_node *dlpar_configure_connector(u32); | |
56 | extern int dlpar_attach_node(struct device_node *); | |
57 | extern int dlpar_detach_node(struct device_node *); | |
58 | ||
577830b0 | 59 | #endif /* _PSERIES_PSERIES_H */ |