David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | #ifndef __ASM_POWERPC_XMON_H |
| 3 | #define __ASM_POWERPC_XMON_H |
| 4 | |
| 5 | /* |
| 6 | * Copyrignt (C) 2006 IBM Corp |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifdef __KERNEL__ |
| 10 | |
| 11 | #include <linux/irqreturn.h> |
| 12 | |
| 13 | #ifdef CONFIG_XMON |
| 14 | extern void xmon_setup(void); |
| 15 | extern void xmon_register_spus(struct list_head *list); |
| 16 | struct pt_regs; |
| 17 | extern int xmon(struct pt_regs *excp); |
| 18 | extern irqreturn_t xmon_irq(int, void *); |
| 19 | #else |
| 20 | static inline void xmon_setup(void) { }; |
| 21 | static inline void xmon_register_spus(struct list_head *list) { }; |
| 22 | #endif |
| 23 | |
| 24 | #if defined(CONFIG_XMON) && defined(CONFIG_SMP) |
| 25 | extern int cpus_are_in_xmon(void); |
| 26 | #endif |
| 27 | |
| 28 | extern __printf(1, 2) void xmon_printf(const char *format, ...); |
| 29 | |
| 30 | #endif /* __KERNEL __ */ |
| 31 | #endif /* __ASM_POWERPC_XMON_H */ |