^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef XEN_HVC_CONSOLE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define XEN_HVC_CONSOLE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) extern struct console xenboot_console;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #ifdef CONFIG_HVC_XEN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) void xen_console_resume(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) void xen_raw_console_write(const char *str);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) __printf(1, 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) void xen_raw_printk(const char *fmt, ...);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) static inline void xen_console_resume(void) { }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) static inline void xen_raw_console_write(const char *str) { }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) static inline __printf(1, 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) void xen_raw_printk(const char *fmt, ...) { }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #endif /* XEN_HVC_CONSOLE_H */