xref: /linux/arch/powerpc/include/asm/xmon.h (revision b8b572e1015f81b4e748417be2629dfe51ab99f9)
1*b8b572e1SStephen Rothwell #ifndef __ASM_POWERPC_XMON_H
2*b8b572e1SStephen Rothwell #define __ASM_POWERPC_XMON_H
3*b8b572e1SStephen Rothwell 
4*b8b572e1SStephen Rothwell /*
5*b8b572e1SStephen Rothwell  * Copyrignt (C) 2006 IBM Corp
6*b8b572e1SStephen Rothwell  *
7*b8b572e1SStephen Rothwell  * This program is free software; you can redistribute it and/or
8*b8b572e1SStephen Rothwell  * modify it under the terms of the GNU General Public License
9*b8b572e1SStephen Rothwell  * as published by the Free Software Foundation; either version
10*b8b572e1SStephen Rothwell  * 2 of the License, or (at your option) any later version.
11*b8b572e1SStephen Rothwell  */
12*b8b572e1SStephen Rothwell 
13*b8b572e1SStephen Rothwell #ifdef __KERNEL__
14*b8b572e1SStephen Rothwell 
15*b8b572e1SStephen Rothwell #include <linux/irqreturn.h>
16*b8b572e1SStephen Rothwell 
17*b8b572e1SStephen Rothwell #ifdef CONFIG_XMON
18*b8b572e1SStephen Rothwell extern void xmon_setup(void);
19*b8b572e1SStephen Rothwell extern void xmon_register_spus(struct list_head *list);
20*b8b572e1SStephen Rothwell struct pt_regs;
21*b8b572e1SStephen Rothwell extern int xmon(struct pt_regs *excp);
22*b8b572e1SStephen Rothwell extern irqreturn_t xmon_irq(int, void *);
23*b8b572e1SStephen Rothwell #else
24*b8b572e1SStephen Rothwell static inline void xmon_setup(void) { };
25*b8b572e1SStephen Rothwell static inline void xmon_register_spus(struct list_head *list) { };
26*b8b572e1SStephen Rothwell #endif
27*b8b572e1SStephen Rothwell 
28*b8b572e1SStephen Rothwell #if defined(CONFIG_XMON) && defined(CONFIG_SMP)
29*b8b572e1SStephen Rothwell extern int cpus_are_in_xmon(void);
30*b8b572e1SStephen Rothwell #endif
31*b8b572e1SStephen Rothwell 
32*b8b572e1SStephen Rothwell #endif /* __KERNEL __ */
33*b8b572e1SStephen Rothwell #endif /* __ASM_POWERPC_XMON_H */
34