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