2008-10-23 13:26:29 +08:00
|
|
|
#ifndef _ASM_X86_SWIOTLB_H
|
|
|
|
#define _ASM_X86_SWIOTLB_H
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2008-12-28 14:02:05 +08:00
|
|
|
#include <linux/swiotlb.h>
|
2006-01-12 05:44:42 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
/* SWIOTLB interface */
|
|
|
|
|
2006-07-30 03:42:49 +08:00
|
|
|
extern int swiotlb_force;
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
#ifdef CONFIG_SWIOTLB
|
|
|
|
extern int swiotlb;
|
2008-07-11 09:23:45 +08:00
|
|
|
extern void pci_swiotlb_init(void);
|
2005-04-17 06:20:36 +08:00
|
|
|
#else
|
|
|
|
#define swiotlb 0
|
2008-07-11 09:23:45 +08:00
|
|
|
static inline void pci_swiotlb_init(void)
|
|
|
|
{
|
|
|
|
}
|
2005-04-17 06:20:36 +08:00
|
|
|
#endif
|
|
|
|
|
2007-02-06 10:46:40 +08:00
|
|
|
static inline void dma_mark_clean(void *addr, size_t size) {}
|
|
|
|
|
2008-10-23 13:26:29 +08:00
|
|
|
#endif /* _ASM_X86_SWIOTLB_H */
|