diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2008-12-16 12:17:38 -0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-17 18:58:22 +0100 |
commit | a08636690d06b2e36cfb4c2b3ee133a81c47e1e0 (patch) | |
tree | f3753c482fac0dd2b06bfcd803d509b1f3f33e5a | |
parent | 1d32251e846ccbcf9d2da041dffd1199f94b2a3b (diff) |
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.c | 5 |
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) |