Michael Ellerman | 23b8acb | 2006-10-03 14:12:07 +1000 | [diff] [blame] | 1 | #ifndef __ASM_POWERPC_XMON_H |
| 2 | #define __ASM_POWERPC_XMON_H |
| 3 | |
| 4 | /* |
| 5 | * Copyrignt (C) 2006 IBM Corp |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License |
| 9 | * as published by the Free Software Foundation; either version |
| 10 | * 2 of the License, or (at your option) any later version. |
| 11 | */ |
| 12 | |
Paul Mackerras | 60a3d74 | 2005-10-11 09:46:10 +1000 | [diff] [blame] | 13 | #ifdef __KERNEL__ |
| 14 | |
Michael Ellerman | af3b74d | 2008-05-08 14:27:15 +1000 | [diff] [blame] | 15 | #include <linux/irqreturn.h> |
| 16 | |
Michael Ellerman | 47679283 | 2006-10-03 14:12:08 +1000 | [diff] [blame] | 17 | #ifdef CONFIG_XMON |
| 18 | extern void xmon_setup(void); |
Michael Ellerman | ff8a8f2 | 2006-10-24 18:31:27 +0200 | [diff] [blame] | 19 | extern void xmon_register_spus(struct list_head *list); |
Michael Ellerman | 7d9e793 | 2008-05-08 14:27:13 +1000 | [diff] [blame] | 20 | struct pt_regs; |
| 21 | extern int xmon(struct pt_regs *excp); |
Michael Ellerman | af3b74d | 2008-05-08 14:27:15 +1000 | [diff] [blame] | 22 | extern irqreturn_t xmon_irq(int, void *); |
Michael Ellerman | 47679283 | 2006-10-03 14:12:08 +1000 | [diff] [blame] | 23 | #else |
| 24 | static inline void xmon_setup(void) { }; |
Michael Ellerman | ff8a8f2 | 2006-10-24 18:31:27 +0200 | [diff] [blame] | 25 | static inline void xmon_register_spus(struct list_head *list) { }; |
Michael Ellerman | 47679283 | 2006-10-03 14:12:08 +1000 | [diff] [blame] | 26 | #endif |
Paul Mackerras | 60a3d74 | 2005-10-11 09:46:10 +1000 | [diff] [blame] | 27 | |
Michael Ellerman | 1c8950f | 2008-05-08 14:27:17 +1000 | [diff] [blame] | 28 | #if defined(CONFIG_XMON) && defined(CONFIG_SMP) |
| 29 | extern int cpus_are_in_xmon(void); |
| 30 | #endif |
| 31 | |
Michael Ellerman | 23b8acb | 2006-10-03 14:12:07 +1000 | [diff] [blame] | 32 | #endif /* __KERNEL __ */ |
| 33 | #endif /* __ASM_POWERPC_XMON_H */ |