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