diff options
-rw-r--r-- | arch/x86/kernel/pci-swiotlb_64.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/x86/kernel/pci-swiotlb_64.c b/arch/x86/kernel/pci-swiotlb_64.c index a991afea6700..93a8371f2c22 100644 --- a/arch/x86/kernel/pci-swiotlb_64.c +++ b/arch/x86/kernel/pci-swiotlb_64.c | |||
@@ -23,6 +23,16 @@ void *swiotlb_alloc(unsigned order, unsigned long nslabs) | |||
23 | return (void *)__get_free_pages(GFP_DMA | __GFP_NOWARN, order); | 23 | return (void *)__get_free_pages(GFP_DMA | __GFP_NOWARN, order); |
24 | } | 24 | } |
25 | 25 | ||
26 | dma_addr_t swiotlb_phys_to_bus(phys_addr_t paddr) | ||
27 | { | ||
28 | return paddr; | ||
29 | } | ||
30 | |||
31 | phys_addr_t swiotlb_bus_to_phys(dma_addr_t baddr) | ||
32 | { | ||
33 | return baddr; | ||
34 | } | ||
35 | |||
26 | static dma_addr_t | 36 | static dma_addr_t |
27 | swiotlb_map_single_phys(struct device *hwdev, phys_addr_t paddr, size_t size, | 37 | swiotlb_map_single_phys(struct device *hwdev, phys_addr_t paddr, size_t size, |
28 | int direction) | 38 | int direction) |