blob: b62dfef15f61ad8d0cdcf53b5d4b8730ec0f9ea5 [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 Perchesb9075fa2011-10-31 17:11:33 -07009__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 Perchesb9075fa2011-10-31 17:11:33 -070014static inline __printf(1, 2)
Joe Perches08b8bfc2011-06-12 09:21:13 -070015void 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 */