Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Jeremy Fitzhardinge | b536b4b | 2007-07-17 18:37:06 -0700 | [diff] [blame] | 2 | #ifndef XEN_HVC_CONSOLE_H |
| 3 | #define XEN_HVC_CONSOLE_H |
| 4 | |
| 5 | extern struct console xenboot_console; |
| 6 | |
Ingo Molnar | 0261ac5 | 2008-05-29 09:31:50 +0200 | [diff] [blame] | 7 | #ifdef CONFIG_HVC_XEN |
Jeremy Fitzhardinge | 6b9b732 | 2008-05-26 23:31:25 +0100 | [diff] [blame] | 8 | void xen_console_resume(void); |
Jeremy Fitzhardinge | 0acf10d | 2008-05-26 23:30:59 +0100 | [diff] [blame] | 9 | void xen_raw_console_write(const char *str); |
Joe Perches | b9075fa | 2011-10-31 17:11:33 -0700 | [diff] [blame] | 10 | __printf(1, 2) |
Jeremy Fitzhardinge | 0acf10d | 2008-05-26 23:30:59 +0100 | [diff] [blame] | 11 | void xen_raw_printk(const char *fmt, ...); |
Ingo Molnar | 9c8a442 | 2008-07-09 13:15:03 +0200 | [diff] [blame] | 12 | #else |
| 13 | static inline void xen_console_resume(void) { } |
| 14 | static inline void xen_raw_console_write(const char *str) { } |
Joe Perches | b9075fa | 2011-10-31 17:11:33 -0700 | [diff] [blame] | 15 | static inline __printf(1, 2) |
Joe Perches | 08b8bfc | 2011-06-12 09:21:13 -0700 | [diff] [blame] | 16 | void xen_raw_printk(const char *fmt, ...) { } |
Ingo Molnar | 9c8a442 | 2008-07-09 13:15:03 +0200 | [diff] [blame] | 17 | #endif |
Jeremy Fitzhardinge | 0acf10d | 2008-05-26 23:30:59 +0100 | [diff] [blame] | 18 | |
Jeremy Fitzhardinge | b536b4b | 2007-07-17 18:37:06 -0700 | [diff] [blame] | 19 | #endif /* XEN_HVC_CONSOLE_H */ |