Michael Ellerman | 577830b | 2007-02-08 18:33:51 +1100 | [diff] [blame] | 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 | |
Michael Neuling | ca8ffc9 | 2007-07-19 07:56:32 +1000 | [diff] [blame] | 13 | extern void __init fw_feature_init(const char *hypertas, unsigned long len); |
Michael Ellerman | 577830b | 2007-02-08 18:33:51 +1100 | [diff] [blame] | 14 | |
| 15 | struct pt_regs; |
| 16 | |
| 17 | extern int pSeries_system_reset_exception(struct pt_regs *regs); |
| 18 | extern int pSeries_machine_check_exception(struct pt_regs *regs); |
| 19 | |
Michael Ellerman | 8feaeca | 2007-02-08 18:33:55 +1100 | [diff] [blame] | 20 | #ifdef CONFIG_SMP |
| 21 | extern void smp_init_pseries_mpic(void); |
| 22 | extern void smp_init_pseries_xics(void); |
| 23 | #else |
Stephen Rothwell | f7c0d13 | 2007-05-16 13:21:09 +1000 | [diff] [blame] | 24 | static inline void smp_init_pseries_mpic(void) { }; |
| 25 | static inline void smp_init_pseries_xics(void) { }; |
Michael Ellerman | 8feaeca | 2007-02-08 18:33:55 +1100 | [diff] [blame] | 26 | #endif |
| 27 | |
Michael Ellerman | dce623e | 2007-02-08 18:33:55 +1100 | [diff] [blame] | 28 | #ifdef CONFIG_KEXEC |
| 29 | extern void setup_kexec_cpu_down_xics(void); |
| 30 | extern void setup_kexec_cpu_down_mpic(void); |
| 31 | #else |
Michael Ellerman | 8c0238b | 2007-02-14 16:08:05 +1100 | [diff] [blame] | 32 | static inline void setup_kexec_cpu_down_xics(void) { } |
| 33 | static inline void setup_kexec_cpu_down_mpic(void) { } |
Michael Ellerman | dce623e | 2007-02-08 18:33:55 +1100 | [diff] [blame] | 34 | #endif |
| 35 | |
Benjamin Herrenschmidt | 3d5134e | 2007-06-04 15:15:36 +1000 | [diff] [blame] | 36 | extern void pSeries_final_fixup(void); |
| 37 | |
Manish Ahuja | 5d30bf3 | 2007-02-08 16:01:17 -0600 | [diff] [blame] | 38 | /* Poweron flag used for enabling auto ups restart */ |
| 39 | extern unsigned long rtas_poweron_auto; |
| 40 | |
Michael Ellerman | 21cf913 | 2008-04-16 13:51:48 +1000 | [diff] [blame^] | 41 | extern void find_udbg_vterm(void); |
| 42 | |
Michael Ellerman | 577830b | 2007-02-08 18:33:51 +1100 | [diff] [blame] | 43 | #endif /* _PSERIES_PSERIES_H */ |