18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Cell Pervasive Monitor and Debug interface and HW structures
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * (C) Copyright IBM Corporation 2005
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Authors: Maximino Aguilar (maguilar@us.ibm.com)
88c2ecf20Sopenharmony_ci *          David J. Erb (djerb@us.ibm.com)
98c2ecf20Sopenharmony_ci */
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#ifndef PERVASIVE_H
138c2ecf20Sopenharmony_ci#define PERVASIVE_H
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciextern void cbe_pervasive_init(void);
168c2ecf20Sopenharmony_ciextern void cbe_system_error_exception(struct pt_regs *regs);
178c2ecf20Sopenharmony_ciextern void cbe_maintenance_exception(struct pt_regs *regs);
188c2ecf20Sopenharmony_ciextern void cbe_thermal_exception(struct pt_regs *regs);
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#ifdef CONFIG_PPC_IBM_CELL_RESETBUTTON
218c2ecf20Sopenharmony_ciextern int cbe_sysreset_hack(void);
228c2ecf20Sopenharmony_ci#else
238c2ecf20Sopenharmony_cistatic inline int cbe_sysreset_hack(void)
248c2ecf20Sopenharmony_ci{
258c2ecf20Sopenharmony_ci	return 1;
268c2ecf20Sopenharmony_ci}
278c2ecf20Sopenharmony_ci#endif /* CONFIG_PPC_IBM_CELL_RESETBUTTON */
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#endif
30