]>
Commit | Line | Data |
---|---|---|
1965aae3 PA |
1 | #ifndef _ASM_X86_SWIOTLB_H |
2 | #define _ASM_X86_SWIOTLB_H | |
1da177e4 | 3 | |
1da4f989 | 4 | #include <linux/swiotlb.h> |
17a941d8 | 5 | |
1da177e4 LT |
6 | /* SWIOTLB interface */ |
7 | ||
65f87d8a AK |
8 | extern int swiotlb_force; |
9 | ||
1da177e4 LT |
10 | #ifdef CONFIG_SWIOTLB |
11 | extern int swiotlb; | |
b18485e7 | 12 | extern int pci_swiotlb_init(void); |
1da177e4 LT |
13 | #else |
14 | #define swiotlb 0 | |
b18485e7 | 15 | static inline int pci_swiotlb_init(void) |
be54f9d1 | 16 | { |
b18485e7 | 17 | return 0; |
be54f9d1 | 18 | } |
1da177e4 LT |
19 | #endif |
20 | ||
cde14bbf JB |
21 | static inline void dma_mark_clean(void *addr, size_t size) {} |
22 | ||
1965aae3 | 23 | #endif /* _ASM_X86_SWIOTLB_H */ |