ia64/xen-unstable

view xen/include/xen/multicall.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 c2a82e026497
children
line source
1 /******************************************************************************
2 * multicall.h
3 */
5 #ifndef __XEN_MULTICALL_H__
6 #define __XEN_MULTICALL_H__
8 #include <xen/percpu.h>
9 #include <asm/multicall.h>
10 #ifdef CONFIG_COMPAT
11 #include <compat/xen.h>
12 #endif
14 #define _MCSF_in_multicall 0
15 #define _MCSF_call_preempted 1
16 #define MCSF_in_multicall (1<<_MCSF_in_multicall)
17 #define MCSF_call_preempted (1<<_MCSF_call_preempted)
18 struct mc_state {
19 unsigned long flags;
20 union {
21 struct multicall_entry call;
22 #ifdef CONFIG_COMPAT
23 struct compat_multicall_entry compat_call;
24 #endif
25 };
26 };
28 DECLARE_PER_CPU(struct mc_state, mc_state);
30 #endif /* __XEN_MULTICALL_H__ */