2008-10-23 05:26:29 +00:00
|
|
|
#ifndef _ASM_X86_SWIOTLB_H
|
|
|
|
#define _ASM_X86_SWIOTLB_H
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2008-12-28 06:02:05 +00:00
|
|
|
#include <linux/swiotlb.h>
|
2006-01-11 21:44:42 +00:00
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
#ifdef CONFIG_SWIOTLB
|
|
|
|
extern int swiotlb;
|
2009-12-15 11:47:56 +00:00
|
|
|
extern int __init pci_swiotlb_detect(void);
|
|
|
|
extern void __init pci_swiotlb_init(void);
|
2005-04-16 22:20:36 +00:00
|
|
|
#else
|
|
|
|
#define swiotlb 0
|
2009-12-15 11:47:56 +00:00
|
|
|
static inline int pci_swiotlb_detect(void)
|
2008-07-11 01:23:45 +00:00
|
|
|
{
|
2009-11-11 15:03:28 +00:00
|
|
|
return 0;
|
2008-07-11 01:23:45 +00:00
|
|
|
}
|
2009-12-15 11:47:56 +00:00
|
|
|
static inline void pci_swiotlb_init(void)
|
|
|
|
{
|
|
|
|
}
|
2005-04-16 22:20:36 +00:00
|
|
|
#endif
|
|
|
|
|
2007-02-06 02:46:40 +00:00
|
|
|
static inline void dma_mark_clean(void *addr, size_t size) {}
|
|
|
|
|
2008-10-23 05:26:29 +00:00
|
|
|
#endif /* _ASM_X86_SWIOTLB_H */
|