Merge branch 'next' of git://git.secretlab.ca/git/linux-2.6
[pandora-kernel.git] / 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 #ifdef CONFIG_SWIOTLB
7 extern int swiotlb;
8 extern int __init pci_swiotlb_detect(void);
9 extern void __init pci_swiotlb_init(void);
10 #else
11 #define swiotlb 0
12 static inline int pci_swiotlb_detect(void)
13 {
14         return 0;
15 }
16 static inline void pci_swiotlb_init(void)
17 {
18 }
19 #endif
20
21 static inline void dma_mark_clean(void *addr, size_t size) {}
22
23 #endif /* _ASM_X86_SWIOTLB_H */