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