ia64/xen-unstable

view xen/include/xen/hvm/iommu.h @ 18617:0d1875d2e5f2

iommu: Cleanups to some header files.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Oct 13 10:08:16 2008 +0100 (2008-10-13)
parents 1e9df5cb885f
children 1dfc48a8c361
line source
1 /*
2 * Copyright (c) 2006, Intel Corporation.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15 * Place - Suite 330, Boston, MA 02111-1307 USA.
16 *
17 * Copyright (C) Allen Kay <allen.m.kay@intel.com>
18 */
20 #ifndef __XEN_HVM_IOMMU_H__
21 #define __XEN_HVM_IOMMU_H__
23 #include <xen/iommu.h>
25 struct g2m_ioport {
26 struct list_head list;
27 unsigned int gport;
28 unsigned int mport;
29 unsigned int np;
30 };
32 struct hvm_iommu {
33 u64 pgd_maddr; /* io page directory machine address */
34 spinlock_t mapping_lock; /* io page table lock */
35 int agaw; /* adjusted guest address width, 0 is level 2 30-bit */
36 struct list_head g2m_ioport_list; /* guest to machine ioport mapping */
37 domid_t iommu_domid; /* domain id stored in iommu */
38 u64 iommu_bitmap; /* bitmap of iommu(s) that the domain uses */
40 /* amd iommu support */
41 int domain_id;
42 int paging_mode;
43 void *root_table;
44 bool_t p2m_synchronized;
46 /* iommu_ops */
47 struct iommu_ops *platform_ops;
48 };
50 #endif /* __XEN_HVM_IOMMU_H__ */