1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 #ifndef __ASM_POWERPC_XMON_H 3 #define __ASM_POWERPC_XMON_H 4 5 /* 6 * Copyrignt (C) 2006 IBM Corp 7 */ 8 9 #ifdef __KERNEL__ 10 11 #include <linux/irqreturn.h> 12 13 #ifdef CONFIG_XMON 14 extern void xmon_setup(void); 15 struct pt_regs; 16 extern int xmon(struct pt_regs *excp); 17 extern irqreturn_t xmon_irq(int, void *); 18 #else xmon_setup(void)19static inline void xmon_setup(void) { } 20 #endif 21 22 #if defined(CONFIG_XMON) && defined(CONFIG_SMP) 23 extern int cpus_are_in_xmon(void); 24 #endif 25 26 extern __printf(1, 2) void xmon_printf(const char *format, ...); 27 28 #endif /* __KERNEL __ */ 29 #endif /* __ASM_POWERPC_XMON_H */ 30