Fenghua Yu | 62fdd76 | 2008-10-17 12:14:13 -0700 | [diff] [blame] | 1 | #ifndef ASM_IA64__SWIOTLB_H |
| 2 | #define ASM_IA64__SWIOTLB_H |
| 3 | |
| 4 | #include <linux/dma-mapping.h> |
FUJITA Tomonori | 1da4f98 | 2008-12-28 15:02:05 +0900 | [diff] [blame] | 5 | #include <linux/swiotlb.h> |
Fenghua Yu | 62fdd76 | 2008-10-17 12:14:13 -0700 | [diff] [blame] | 6 | |
Fenghua Yu | 62fdd76 | 2008-10-17 12:14:13 -0700 | [diff] [blame] | 7 | #ifdef CONFIG_SWIOTLB |
| 8 | extern int swiotlb; |
| 9 | extern void pci_swiotlb_init(void); |
| 10 | #else |
| 11 | #define swiotlb 0 |
| 12 | static inline void pci_swiotlb_init(void) |
| 13 | { |
| 14 | } |
| 15 | #endif |
| 16 | |
| 17 | #endif /* ASM_IA64__SWIOTLB_H */ |