Loading...
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2#ifndef __ASM_POWERPC_XMON_H
3#define __ASM_POWERPC_XMON_H
4
5/*
6 * Copyrignt (C) 2006 IBM Corp
7 */
8
9#ifdef __KERNEL__
10
11#include <linux/irqreturn.h>
12
13#ifdef CONFIG_XMON
14extern void xmon_setup(void);
15void __init xmon_register_spus(struct list_head *list);
16struct pt_regs;
17extern int xmon(struct pt_regs *excp);
18extern irqreturn_t xmon_irq(int, void *);
19#else
20static inline void xmon_setup(void) { }
21static inline void xmon_register_spus(struct list_head *list) { }
22#endif
23
24#if defined(CONFIG_XMON) && defined(CONFIG_SMP)
25extern int cpus_are_in_xmon(void);
26#endif
27
28extern __printf(1, 2) void xmon_printf(const char *format, ...);
29
30#endif /* __KERNEL __ */
31#endif /* __ASM_POWERPC_XMON_H */
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
13#ifdef __KERNEL__
14
15#include <linux/irqreturn.h>
16
17#ifdef CONFIG_XMON
18extern void xmon_setup(void);
19extern void xmon_register_spus(struct list_head *list);
20struct pt_regs;
21extern int xmon(struct pt_regs *excp);
22extern irqreturn_t xmon_irq(int, void *);
23#else
24static inline void xmon_setup(void) { };
25static inline void xmon_register_spus(struct list_head *list) { };
26#endif
27
28#if defined(CONFIG_XMON) && defined(CONFIG_SMP)
29extern int cpus_are_in_xmon(void);
30#endif
31
32#endif /* __KERNEL __ */
33#endif /* __ASM_POWERPC_XMON_H */