ia64/xen-unstable

view xen/include/xen/console.h @ 19800:78962f85c562

IOMMU: Add two generic functions to vendor neutral interface

Add 2 generic functions into the vendor neutral iommu interface, The
reason is that from changeset 19732, there is only one global flag
"iommu_enabled" that controls iommu enablement for both vtd and amd
systems, so we need different code paths for vtd and amd iommu systems
if this flag has been turned on. Also, the early checking of
"iommu_enabled" in iommu_setup() is removed to prevent iommu
functionalities from been disabled on amd systems.

Signed-off-by: Wei Wang <wei.wang2@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jun 19 08:41:50 2009 +0100 (2009-06-19)
parents 81d6b5762c40
children
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 console_init_preirq(void);
18 void console_init_postirq(void);
19 void console_endboot(void);
20 int console_has(const char *device);
22 int fill_console_start_info(struct dom0_vga_console_info *);
24 void console_force_unlock(void);
25 void console_force_lock(void);
27 void console_start_sync(void);
28 void console_end_sync(void);
30 void console_start_log_everything(void);
31 void console_end_log_everything(void);
33 /*
34 * Steal output from the console. Returns +ve identifier, else -ve error.
35 * Takes the handle of the serial line to steal, and steal callback function.
36 */
37 int console_steal(int handle, void (*fn)(const char *));
39 /* Give back stolen console. Takes the identifier returned by console_steal. */
40 void console_giveback(int id);
42 int console_suspend(void);
43 int console_resume(void);
45 #endif /* __CONSOLE_H__ */