summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/pci-swiotlb_64.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2008-12-16 12:17:38 -0800
committerIngo Molnar <mingo@elte.hu>2008-12-17 18:58:22 +0100
commita08636690d06b2e36cfb4c2b3ee133a81c47e1e0 (patch)
treef3753c482fac0dd2b06bfcd803d509b1f3f33e5a /arch/x86/kernel/pci-swiotlb_64.c
parent1d32251e846ccbcf9d2da041dffd1199f94b2a3b (diff)
downloadblackbird-op-linux-a08636690d06b2e36cfb4c2b3ee133a81c47e1e0.tar.gz
blackbird-op-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>
Diffstat (limited to 'arch/x86/kernel/pci-swiotlb_64.c')
-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)
OpenPOWER on IntegriCloud