ia64/xen-unstable

view xen/drivers/passthrough/vtd/ia64/ats.c @ 19697:42fe00c6f8b4

Enable pci mmcfg and ATS for x86_64

This patch enables PCI MMCONFIG in xen and turns on hooks for ATS.

Signed-off-by: Allen Kay <allen.m.kay@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jun 02 11:49:34 2009 +0100 (2009-06-02)
parents f3bed18decfc
children
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 int ats_device(int seg, int bus, int devfn)
39 {
40 return 0;
41 }
43 int enable_ats_device(int seg, int bus, int devfn)
44 {
45 return 0;
46 }
48 static int device_in_domain(struct iommu *iommu,
49 struct pci_ats_dev *pdev, u16 did)
50 {
51 return 0;
52 }
54 int dev_invalidate_iotlb(struct iommu *iommu, u16 did,
55 u64 addr, unsigned int size_order, u64 type)
56 {
57 return 0;
58 }