Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 #ifndef __ASM_POWERPC_XMON_H
0003 #define __ASM_POWERPC_XMON_H
0004 
0005 /*
0006  * Copyrignt (C) 2006 IBM Corp
0007  */
0008 
0009 #ifdef __KERNEL__
0010 
0011 #include <linux/irqreturn.h>
0012 
0013 #ifdef CONFIG_XMON
0014 extern void xmon_setup(void);
0015 void __init xmon_register_spus(struct list_head *list);
0016 struct pt_regs;
0017 extern int xmon(struct pt_regs *excp);
0018 extern irqreturn_t xmon_irq(int, void *);
0019 #else
0020 static inline void xmon_setup(void) { }
0021 static inline void xmon_register_spus(struct list_head *list) { }
0022 #endif
0023 
0024 #if defined(CONFIG_XMON) && defined(CONFIG_SMP)
0025 extern int cpus_are_in_xmon(void);
0026 #endif
0027 
0028 extern __printf(1, 2) void xmon_printf(const char *format, ...);
0029 
0030 #endif /* __KERNEL __ */
0031 #endif /* __ASM_POWERPC_XMON_H */