swiotlb: Remove the swiotlb variable usage
[safe/jmp/linux-2.6] / arch / x86 / include / asm / swiotlb.h
1 #ifndef _ASM_X86_SWIOTLB_H
2 #define _ASM_X86_SWIOTLB_H
3
4 #include <linux/swiotlb.h>
5
6 /* SWIOTLB interface */
7
8 extern int swiotlb_force;
9
10 #ifdef CONFIG_SWIOTLB
11 extern int swiotlb;
12 extern int pci_swiotlb_init(void);
13 #else
14 #define swiotlb 0
15 static inline int pci_swiotlb_init(void)
16 {
17         return 0;
18 }
19 #endif
20
21 static inline void dma_mark_clean(void *addr, size_t size) {}
22
23 #endif /* _ASM_X86_SWIOTLB_H */