xref: /linux/arch/powerpc/platforms/cell/pervasive.h (revision 0d456bad36d42d16022be045c8a53ddbb59ee478)
1 /*
2  * Cell Pervasive Monitor and Debug interface and HW structures
3  *
4  * (C) Copyright IBM Corporation 2005
5  *
6  * Authors: Maximino Aguilar (maguilar@us.ibm.com)
7  *          David J. Erb (djerb@us.ibm.com)
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2, or (at your option)
12  * any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22  */
23 
24 
25 #ifndef PERVASIVE_H
26 #define PERVASIVE_H
27 
28 extern void cbe_pervasive_init(void);
29 extern void cbe_system_error_exception(struct pt_regs *regs);
30 extern void cbe_maintenance_exception(struct pt_regs *regs);
31 extern void cbe_thermal_exception(struct pt_regs *regs);
32 
33 #ifdef CONFIG_PPC_IBM_CELL_RESETBUTTON
34 extern int cbe_sysreset_hack(void);
35 #else
36 static inline int cbe_sysreset_hack(void)
37 {
38 	return 1;
39 }
40 #endif /* CONFIG_PPC_IBM_CELL_RESETBUTTON */
41 
42 #endif
43