ia64/xen-unstable

view xen/include/xen/console.h @ 17864:d4dcd4d39952

Bring back console_start_log_everything() as a milder alternative to
console_start_sync(). Revert keyhandler logic to use it. The
difference now is that serial logic is updated to not drop characters
if inb a log_everything region. Still this is milder than a sync
region since the async buffer must be filled before we start to
busy-wait on each character.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jun 13 14:15:00 2008 +0100 (2008-06-13)
parents 7eab5d8788a6
children 81d6b5762c40
line source
1 /******************************************************************************
2 * xen/console.h
3 *
4 * Xen header file concerning console access.
5 */
7 #ifndef __CONSOLE_H__
8 #define __CONSOLE_H__
10 #include <xen/spinlock.h>
11 #include <xen/guest_access.h>
12 #include <public/xen.h>
14 struct xen_sysctl_readconsole;
15 long read_console_ring(struct xen_sysctl_readconsole *op);
17 void init_console(void);
18 void console_endboot(void);
19 int console_has(const char *device);
21 int fill_console_start_info(struct dom0_vga_console_info *);
23 void console_force_unlock(void);
24 void console_force_lock(void);
26 void console_start_sync(void);
27 void console_end_sync(void);
29 void console_start_log_everything(void);
30 void console_end_log_everything(void);
32 /*
33 * Steal output from the console. Returns +ve identifier, else -ve error.
34 * Takes the handle of the serial line to steal, and steal callback function.
35 */
36 int console_steal(int handle, void (*fn)(const char *));
38 /* Give back stolen console. Takes the identifier returned by console_steal. */
39 void console_giveback(int id);
41 int console_suspend(void);
42 int console_resume(void);
44 #endif /* __CONSOLE_H__ */