summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Campbell2008-12-16 21:17:38 +0100
committerIngo Molnar2008-12-17 18:58:22 +0100
commita08636690d06b2e36cfb4c2b3ee133a81c47e1e0 (patch)
treef3753c482fac0dd2b06bfcd803d509b1f3f33e5a
parentx86/swiotlb: add default phys<->bus conversion (diff)
downloadkernel-qcow2-linux-a08636690d06b2e36cfb4c2b3ee133a81c47e1e0.tar.gz
kernel-qcow2-linux-a08636690d06b2e36cfb4c2b3ee133a81c47e1e0.tar.xz
kernel-qcow2-linux-a08636690d06b2e36cfb4c2b3ee133a81c47e1e0.zip
x86/swiotlb: add default swiotlb_arch_range_needs_mapping
Xen will override these later on. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/kernel/pci-swiotlb_64.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/kernel/pci-swiotlb_64.c b/arch/x86/kernel/pci-swiotlb_64.c
index 93a8371f2c22..242c3440687f 100644
--- a/arch/x86/kernel/pci-swiotlb_64.c
+++ b/arch/x86/kernel/pci-swiotlb_64.c
@@ -33,6 +33,11 @@ phys_addr_t swiotlb_bus_to_phys(dma_addr_t baddr)
return baddr;
}
+int __weak swiotlb_arch_range_needs_mapping(void *ptr, size_t size)
+{
+ return 0;
+}
+
static dma_addr_t
swiotlb_map_single_phys(struct device *hwdev, phys_addr_t paddr, size_t size,
int direction)