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 | #ifdef CONFIG_SWIOTLB |
7 | extern int swiotlb; | ||||
FUJITA Tomonori | 186a250 | 2009-12-15 20:47:56 +0900 | [diff] [blame] | 8 | extern int __init pci_swiotlb_detect(void); |
9 | extern void __init pci_swiotlb_init(void); | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | #else |
11 | #define swiotlb 0 | ||||
FUJITA Tomonori | 186a250 | 2009-12-15 20:47:56 +0900 | [diff] [blame] | 12 | static inline int pci_swiotlb_detect(void) |
FUJITA Tomonori | be54f9d | 2008-07-11 10:23:45 +0900 | [diff] [blame] | 13 | { |
FUJITA Tomonori | b18485e | 2009-11-12 00:03:28 +0900 | [diff] [blame] | 14 | return 0; |
FUJITA Tomonori | be54f9d | 2008-07-11 10:23:45 +0900 | [diff] [blame] | 15 | } |
FUJITA Tomonori | 186a250 | 2009-12-15 20:47:56 +0900 | [diff] [blame] | 16 | static inline void pci_swiotlb_init(void) |
17 | { | ||||
18 | } | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | #endif |
20 | |||||
Jan Beulich | cde14bb | 2007-02-05 18:46:40 -0800 | [diff] [blame] | 21 | static inline void dma_mark_clean(void *addr, size_t size) {} |
22 | |||||
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 23 | #endif /* _ASM_X86_SWIOTLB_H */ |