blob: 5eb8e599e5cc37413dcf1dadd076edd984135f73 [file] [log] [blame]
Michael Ellerman23b8acb2006-10-03 14:12:07 +10001#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 Mackerras60a3d742005-10-11 09:46:10 +100013#ifdef __KERNEL__
14
Michael Ellermanaf3b74d2008-05-08 14:27:15 +100015#include <linux/irqreturn.h>
16
Michael Ellerman476792832006-10-03 14:12:08 +100017#ifdef CONFIG_XMON
18extern void xmon_setup(void);
Michael Ellermanff8a8f22006-10-24 18:31:27 +020019extern void xmon_register_spus(struct list_head *list);
Michael Ellerman7d9e7932008-05-08 14:27:13 +100020struct pt_regs;
21extern int xmon(struct pt_regs *excp);
Michael Ellermanaf3b74d2008-05-08 14:27:15 +100022extern irqreturn_t xmon_irq(int, void *);
Michael Ellerman476792832006-10-03 14:12:08 +100023#else
24static inline void xmon_setup(void) { };
Michael Ellermanff8a8f22006-10-24 18:31:27 +020025static inline void xmon_register_spus(struct list_head *list) { };
Michael Ellerman476792832006-10-03 14:12:08 +100026#endif
Paul Mackerras60a3d742005-10-11 09:46:10 +100027
Michael Ellerman1c8950f2008-05-08 14:27:17 +100028#if defined(CONFIG_XMON) && defined(CONFIG_SMP)
29extern int cpus_are_in_xmon(void);
30#endif
31
Michael Ellerman23b8acb2006-10-03 14:12:07 +100032#endif /* __KERNEL __ */
33#endif /* __ASM_POWERPC_XMON_H */