Arnd Bergmann | c902be7 | 2006-01-04 19:55:53 +0000 | [diff] [blame] | 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 | |
Benjamin Herrenschmidt | acf7d76 | 2006-06-19 20:33:16 +0200 | [diff] [blame] | 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); |
Arnd Bergmann | c902be7 | 2006-01-04 19:55:53 +0000 | [diff] [blame] | 32 | |
Christian Krafft | 70694a8 | 2008-07-16 05:51:44 +1000 | [diff] [blame] | 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 | |
Arnd Bergmann | c902be7 | 2006-01-04 19:55:53 +0000 | [diff] [blame] | 42 | #endif |