pervasive.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #ifndef PERVASIVE_H
  24. #define PERVASIVE_H
  25. extern void cbe_pervasive_init(void);
  26. extern void cbe_system_error_exception(struct pt_regs *regs);
  27. extern void cbe_maintenance_exception(struct pt_regs *regs);
  28. extern void cbe_thermal_exception(struct pt_regs *regs);
  29. #ifdef CONFIG_PPC_IBM_CELL_RESETBUTTON
  30. extern int cbe_sysreset_hack(void);
  31. #else
  32. static inline int cbe_sysreset_hack(void)
  33. {
  34. return 1;
  35. }
  36. #endif /* CONFIG_PPC_IBM_CELL_RESETBUTTON */
  37. #endif