18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci#ifndef __ASM_POWERPC_XMON_H 38c2ecf20Sopenharmony_ci#define __ASM_POWERPC_XMON_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci/* 68c2ecf20Sopenharmony_ci * Copyrignt (C) 2006 IBM Corp 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#ifdef __KERNEL__ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#include <linux/irqreturn.h> 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#ifdef CONFIG_XMON 148c2ecf20Sopenharmony_ciextern void xmon_setup(void); 158c2ecf20Sopenharmony_ciextern void xmon_register_spus(struct list_head *list); 168c2ecf20Sopenharmony_cistruct pt_regs; 178c2ecf20Sopenharmony_ciextern int xmon(struct pt_regs *excp); 188c2ecf20Sopenharmony_ciextern irqreturn_t xmon_irq(int, void *); 198c2ecf20Sopenharmony_ci#else 208c2ecf20Sopenharmony_cistatic inline void xmon_setup(void) { }; 218c2ecf20Sopenharmony_cistatic inline void xmon_register_spus(struct list_head *list) { }; 228c2ecf20Sopenharmony_ci#endif 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#if defined(CONFIG_XMON) && defined(CONFIG_SMP) 258c2ecf20Sopenharmony_ciextern int cpus_are_in_xmon(void); 268c2ecf20Sopenharmony_ci#endif 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ciextern __printf(1, 2) void xmon_printf(const char *format, ...); 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#endif /* __KERNEL __ */ 318c2ecf20Sopenharmony_ci#endif /* __ASM_POWERPC_XMON_H */ 32