blob: d8949d5e227d6d48293daaafcfad7760cc365c50 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Jeremy Fitzhardingeb536b4b2007-07-17 18:37:06 -07002#ifndef XEN_HVC_CONSOLE_H
3#define XEN_HVC_CONSOLE_H
4
5extern struct console xenboot_console;
6
Ingo Molnar0261ac52008-05-29 09:31:50 +02007#ifdef CONFIG_HVC_XEN
Jeremy Fitzhardinge6b9b7322008-05-26 23:31:25 +01008void xen_console_resume(void);
Jeremy Fitzhardinge0acf10d2008-05-26 23:30:59 +01009void xen_raw_console_write(const char *str);
Joe Perchesb9075fa2011-10-31 17:11:33 -070010__printf(1, 2)
Jeremy Fitzhardinge0acf10d2008-05-26 23:30:59 +010011void xen_raw_printk(const char *fmt, ...);
Ingo Molnar9c8a4422008-07-09 13:15:03 +020012#else
13static inline void xen_console_resume(void) { }
14static inline void xen_raw_console_write(const char *str) { }
Joe Perchesb9075fa2011-10-31 17:11:33 -070015static inline __printf(1, 2)
Joe Perches08b8bfc2011-06-12 09:21:13 -070016void xen_raw_printk(const char *fmt, ...) { }
Ingo Molnar9c8a4422008-07-09 13:15:03 +020017#endif
Jeremy Fitzhardinge0acf10d2008-05-26 23:30:59 +010018
Jeremy Fitzhardingeb536b4b2007-07-17 18:37:06 -070019#endif /* XEN_HVC_CONSOLE_H */