blob: 901724dc528d35f9b28f8376b791da4f8e1613e1 [file] [log] [blame]
Jeremy Fitzhardingeb536b4b2007-07-17 18:37:06 -07001#ifndef XEN_HVC_CONSOLE_H
2#define XEN_HVC_CONSOLE_H
3
4extern struct console xenboot_console;
5
Ingo Molnar0261ac52008-05-29 09:31:50 +02006#ifdef CONFIG_HVC_XEN
Jeremy Fitzhardinge6b9b7322008-05-26 23:31:25 +01007void xen_console_resume(void);
Jeremy Fitzhardinge0acf10d2008-05-26 23:30:59 +01008void xen_raw_console_write(const char *str);
Joe Perches08b8bfc2011-06-12 09:21:13 -07009__attribute__((format(printf, 1, 2)))
Jeremy Fitzhardinge0acf10d2008-05-26 23:30:59 +010010void xen_raw_printk(const char *fmt, ...);
Ingo Molnar9c8a4422008-07-09 13:15:03 +020011#else
12static inline void xen_console_resume(void) { }
13static inline void xen_raw_console_write(const char *str) { }
Joe Perches08b8bfc2011-06-12 09:21:13 -070014static inline __attribute__((format(printf, 1, 2)))
15void xen_raw_printk(const char *fmt, ...) { }
Ingo Molnar9c8a4422008-07-09 13:15:03 +020016#endif
Jeremy Fitzhardinge0acf10d2008-05-26 23:30:59 +010017
Jeremy Fitzhardingeb536b4b2007-07-17 18:37:06 -070018#endif /* XEN_HVC_CONSOLE_H */