ia64/xen-unstable

view xen/drivers/passthrough/vtd/ia64/ats.c @ 19673:f3bed18decfc

[VTD] laying the ground work for ATS

These changes lay the ground work for ATS enabling in Xen. It will be
followed by patch which enables PCI MMCFG which is needed for actual
enabling of ATS functionality.

Signed-off-by: Allen Kay <allen.m.kay@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri May 29 09:19:30 2009 +0100 (2009-05-29)
parents
children 42fe00c6f8b4
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 * Author: Allen Kay <allen.m.kay@intel.com>
18 */
20 #include <xen/sched.h>
21 #include <xen/iommu.h>
22 #include <xen/time.h>
23 #include <xen/pci.h>
24 #include <xen/pci_regs.h>
25 #include <asm/msi.h>
26 #include "../iommu.h"
27 #include "../dmar.h"
28 #include "../vtd.h"
29 #include "../extern.h"
31 int ats_enabled = 0;
33 struct acpi_drhd_unit * find_ats_dev_drhd(struct iommu *iommu)
34 {
35 return NULL;
36 }
38 /*
39 * BUGBUG: return 0 until pcimmcfg is checked in.
40 */
41 int pci_find_ext_capability(int seg, int bus, int devfn, int cap)
42 {
43 return 0;
44 }
46 int ats_device(int seg, int bus, int devfn)
47 {
48 return 0;
49 }
51 int enable_ats_device(int seg, int bus, int devfn)
52 {
53 return 0;
54 }
56 static int device_in_domain(struct iommu *iommu,
57 struct pci_ats_dev *pdev, u16 did)
58 {
59 return 0;
60 }
62 int dev_invalidate_iotlb(struct iommu *iommu, u16 did,
63 u64 addr, unsigned int size_order, u64 type)
64 {
65 return 0;
66 }