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