x86/amd-iommu: Add per IOMMU reference counting
[linux/fpc-iii.git] / arch / x86 / include / asm / swiotlb.h
blob87ffcb12a1b87c91b3ad9fd6f459b97ad222aa5c
1 #ifndef _ASM_X86_SWIOTLB_H
2 #define _ASM_X86_SWIOTLB_H
4 #include <linux/swiotlb.h>
6 #ifdef CONFIG_SWIOTLB
7 extern int swiotlb;
8 extern int pci_swiotlb_init(void);
9 #else
10 #define swiotlb 0
11 static inline int pci_swiotlb_init(void)
13 return 0;
15 #endif
17 static inline void dma_mark_clean(void *addr, size_t size) {}
19 #endif /* _ASM_X86_SWIOTLB_H */