H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 1 | #ifndef _ASM_X86_SWIOTLB_H |
2 | #define _ASM_X86_SWIOTLB_H | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | |
FUJITA Tomonori | 1da4f98 | 2008-12-28 15:02:05 +0900 | [diff] [blame] | 4 | #include <linux/swiotlb.h> |
Muli Ben-Yehuda | 17a941d | 2006-01-11 22:44:42 +0100 | [diff] [blame] | 5 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | /* SWIOTLB interface */ |
7 | |||||
Andi Kleen | 65f87d8 | 2006-07-29 21:42:49 +0200 | [diff] [blame] | 8 | extern int swiotlb_force; |
9 | |||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | #ifdef CONFIG_SWIOTLB |
11 | extern int swiotlb; | ||||
FUJITA Tomonori | be54f9d | 2008-07-11 10:23:45 +0900 | [diff] [blame] | 12 | extern void pci_swiotlb_init(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | #else |
14 | #define swiotlb 0 | ||||
FUJITA Tomonori | be54f9d | 2008-07-11 10:23:45 +0900 | [diff] [blame] | 15 | static inline void pci_swiotlb_init(void) |
16 | { | ||||
17 | } | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | #endif |
19 | |||||
Jan Beulich | cde14bb | 2007-02-05 18:46:40 -0800 | [diff] [blame] | 20 | static inline void dma_mark_clean(void *addr, size_t size) {} |
21 | |||||
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 22 | #endif /* _ASM_X86_SWIOTLB_H */ |