blob: b9e4e20174fbb0c9519848f1f542b2bb3e9c2a89 [file] [log] [blame]
H. Peter Anvin1965aae2008-10-22 22:26:29 -07001#ifndef _ASM_X86_SWIOTLB_H
2#define _ASM_X86_SWIOTLB_H
Linus Torvalds1da177e2005-04-16 15:20:36 -07003
FUJITA Tomonori1da4f982008-12-28 15:02:05 +09004#include <linux/swiotlb.h>
Muli Ben-Yehuda17a941d2006-01-11 22:44:42 +01005
Linus Torvalds1da177e2005-04-16 15:20:36 -07006/* SWIOTLB interface */
7
Andi Kleen65f87d82006-07-29 21:42:49 +02008extern int swiotlb_force;
9
Linus Torvalds1da177e2005-04-16 15:20:36 -070010#ifdef CONFIG_SWIOTLB
11extern int swiotlb;
FUJITA Tomonoribe54f9d2008-07-11 10:23:45 +090012extern void pci_swiotlb_init(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070013#else
14#define swiotlb 0
FUJITA Tomonoribe54f9d2008-07-11 10:23:45 +090015static inline void pci_swiotlb_init(void)
16{
17}
Linus Torvalds1da177e2005-04-16 15:20:36 -070018#endif
19
Jan Beulichcde14bb2007-02-05 18:46:40 -080020static inline void dma_mark_clean(void *addr, size_t size) {}
21
H. Peter Anvin1965aae2008-10-22 22:26:29 -070022#endif /* _ASM_X86_SWIOTLB_H */