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