diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-22 19:39:42 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-22 19:39:42 -0400 |
| commit | 6d16d6d9bb6f93e6f8506cfb3e91795d6443d54f (patch) | |
| tree | 92a1c9e4b645fa6d1fffedaeb56141b66f847320 /include | |
| parent | 431bf99d26157d56689e5de65bd27ce9f077fc3f (diff) | |
| parent | b395fb36d59e17b9335805c10fa30fc51c8a94c6 (diff) | |
Merge branch 'core-iommu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'core-iommu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
iommu/core: Fix build with INTR_REMAP=y && CONFIG_DMAR=n
iommu/amd: Don't use MSI address range for DMA addresses
iommu/amd: Move missing parts to drivers/iommu
iommu: Move iommu Kconfig entries to submenu
x86/ia64: intel-iommu: move to drivers/iommu/
x86: amd_iommu: move to drivers/iommu/
msm: iommu: move to drivers/iommu/
drivers: iommu: move to a dedicated folder
x86/amd-iommu: Store device alias as dev_data pointer
x86/amd-iommu: Search for existind dev_data before allocting a new one
x86/amd-iommu: Allow dev_data->alias to be NULL
x86/amd-iommu: Use only dev_data in low-level domain attach/detach functions
x86/amd-iommu: Use only dev_data for dte and iotlb flushing routines
x86/amd-iommu: Store ATS state in dev_data
x86/amd-iommu: Store devid in dev_data
x86/amd-iommu: Introduce global dev_data_list
x86/amd-iommu: Remove redundant device_flush_dte() calls
iommu-api: Add missing header file
Fix up trivial conflicts (independent additions close to each other) in
drivers/Makefile and include/linux/pci.h
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/amd-iommu.h | 35 | ||||
| -rw-r--r-- | include/linux/iommu.h | 2 | ||||
| -rw-r--r-- | include/linux/pci.h | 11 |
3 files changed, 48 insertions, 0 deletions
diff --git a/include/linux/amd-iommu.h b/include/linux/amd-iommu.h new file mode 100644 index 000000000000..a6863a2dec1f --- /dev/null +++ b/include/linux/amd-iommu.h | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2007-2010 Advanced Micro Devices, Inc. | ||
| 3 | * Author: Joerg Roedel <joerg.roedel@amd.com> | ||
| 4 | * Leo Duran <leo.duran@amd.com> | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms of the GNU General Public License version 2 as published | ||
| 8 | * by the Free Software Foundation. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program; if not, write to the Free Software | ||
| 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 18 | */ | ||
| 19 | |||
| 20 | #ifndef _ASM_X86_AMD_IOMMU_H | ||
| 21 | #define _ASM_X86_AMD_IOMMU_H | ||
| 22 | |||
| 23 | #include <linux/irqreturn.h> | ||
| 24 | |||
| 25 | #ifdef CONFIG_AMD_IOMMU | ||
| 26 | |||
| 27 | extern int amd_iommu_detect(void); | ||
| 28 | |||
| 29 | #else | ||
| 30 | |||
| 31 | static inline int amd_iommu_detect(void) { return -ENODEV; } | ||
| 32 | |||
| 33 | #endif | ||
| 34 | |||
| 35 | #endif /* _ASM_X86_AMD_IOMMU_H */ | ||
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 0a2ba4098996..9940319d6f9d 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h | |||
| @@ -19,6 +19,8 @@ | |||
| 19 | #ifndef __LINUX_IOMMU_H | 19 | #ifndef __LINUX_IOMMU_H |
| 20 | #define __LINUX_IOMMU_H | 20 | #define __LINUX_IOMMU_H |
| 21 | 21 | ||
| 22 | #include <linux/errno.h> | ||
| 23 | |||
| 22 | #define IOMMU_READ (1) | 24 | #define IOMMU_READ (1) |
| 23 | #define IOMMU_WRITE (2) | 25 | #define IOMMU_WRITE (2) |
| 24 | #define IOMMU_CACHE (4) /* DMA cache coherency */ | 26 | #define IOMMU_CACHE (4) /* DMA cache coherency */ |
diff --git a/include/linux/pci.h b/include/linux/pci.h index 2d292182dde5..4e4203a96312 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -1617,5 +1617,16 @@ static inline void pci_set_bus_of_node(struct pci_bus *bus) { } | |||
| 1617 | static inline void pci_release_bus_of_node(struct pci_bus *bus) { } | 1617 | static inline void pci_release_bus_of_node(struct pci_bus *bus) { } |
| 1618 | #endif /* CONFIG_OF */ | 1618 | #endif /* CONFIG_OF */ |
| 1619 | 1619 | ||
| 1620 | /** | ||
| 1621 | * pci_find_upstream_pcie_bridge - find upstream PCIe-to-PCI bridge of a device | ||
| 1622 | * @pdev: the PCI device | ||
| 1623 | * | ||
| 1624 | * if the device is PCIE, return NULL | ||
| 1625 | * if the device isn't connected to a PCIe bridge (that is its parent is a | ||
| 1626 | * legacy PCI bridge and the bridge is directly connected to bus 0), return its | ||
| 1627 | * parent | ||
| 1628 | */ | ||
| 1629 | struct pci_dev *pci_find_upstream_pcie_bridge(struct pci_dev *pdev); | ||
| 1630 | |||
| 1620 | #endif /* __KERNEL__ */ | 1631 | #endif /* __KERNEL__ */ |
| 1621 | #endif /* LINUX_PCI_H */ | 1632 | #endif /* LINUX_PCI_H */ |
