blob: d8949d5e227d6d48293daaafcfad7760cc365c50 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef XEN_HVC_CONSOLE_H
3#define XEN_HVC_CONSOLE_H
4
5extern struct console xenboot_console;
6
7#ifdef CONFIG_HVC_XEN
8void xen_console_resume(void);
9void xen_raw_console_write(const char *str);
10__printf(1, 2)
11void xen_raw_printk(const char *fmt, ...);
12#else
13static inline void xen_console_resume(void) { }
14static inline void xen_raw_console_write(const char *str) { }
15static inline __printf(1, 2)
16void xen_raw_printk(const char *fmt, ...) { }
17#endif
18
19#endif /* XEN_HVC_CONSOLE_H */