ia64/xen-unstable

view xen/include/xen/vga.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 f2649861d594
children
line source
1 /*
2 * vga.h
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file COPYING in the main directory of this archive
6 * for more details.
7 */
9 #ifndef _XEN_VGA_H
10 #define _XEN_VGA_H
12 #include <xen/config.h>
14 #ifdef CONFIG_VGA
15 extern struct xen_vga_console_info vga_console_info;
16 void vga_init(void);
17 void vga_endboot(void);
18 extern void (*vga_puts)(const char *);
19 #else
20 #define vga_init() ((void)0)
21 #define vga_endboot() ((void)0)
22 #define vga_puts(s) ((void)0)
23 #endif
25 #endif /* _XEN_VGA_H */