Skip to content

Commit

Permalink
x86/swiotlb: add default swiotlb_arch_range_needs_mapping
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ian Campbell authored and Ingo Molnar committed Dec 17, 2008
1 parent 1d32251 commit a086366
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/x86/kernel/pci-swiotlb_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a086366

Please sign in to comment.