blob: 9e17c0d2a0c89186e71390d02a5f19b6659993b3 [file] [log] [blame]
Michael Ellerman577830b2007-02-08 18:33:51 +11001/*
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 Neulingca8ffc92007-07-19 07:56:32 +100013extern void __init fw_feature_init(const char *hypertas, unsigned long len);
Michael Ellerman577830b2007-02-08 18:33:51 +110014
15struct pt_regs;
16
17extern int pSeries_system_reset_exception(struct pt_regs *regs);
18extern int pSeries_machine_check_exception(struct pt_regs *regs);
19
Michael Ellerman8feaeca2007-02-08 18:33:55 +110020#ifdef CONFIG_SMP
21extern void smp_init_pseries_mpic(void);
22extern void smp_init_pseries_xics(void);
23#else
Stephen Rothwellf7c0d132007-05-16 13:21:09 +100024static inline void smp_init_pseries_mpic(void) { };
25static inline void smp_init_pseries_xics(void) { };
Michael Ellerman8feaeca2007-02-08 18:33:55 +110026#endif
27
Michael Ellermandce623e2007-02-08 18:33:55 +110028#ifdef CONFIG_KEXEC
29extern void setup_kexec_cpu_down_xics(void);
30extern void setup_kexec_cpu_down_mpic(void);
31#else
Michael Ellerman8c0238b2007-02-14 16:08:05 +110032static inline void setup_kexec_cpu_down_xics(void) { }
33static inline void setup_kexec_cpu_down_mpic(void) { }
Michael Ellermandce623e2007-02-08 18:33:55 +110034#endif
35
Benjamin Herrenschmidt3d5134e2007-06-04 15:15:36 +100036extern void pSeries_final_fixup(void);
37
Manish Ahuja5d30bf32007-02-08 16:01:17 -060038/* Poweron flag used for enabling auto ups restart */
39extern unsigned long rtas_poweron_auto;
40
Michael Ellerman21cf9132008-04-16 13:51:48 +100041extern void find_udbg_vterm(void);
42
Michael Ellerman577830b2007-02-08 18:33:51 +110043#endif /* _PSERIES_PSERIES_H */