| 1 | #ifndef _ASM_X86_SWIOTLB_H |
| 2 | #define _ASM_X86_SWIOTLB_H |
| 3 | |
| 4 | #include <linux/swiotlb.h> |
| 5 | |
| 6 | #ifdef CONFIG_SWIOTLB |
| 7 | extern int swiotlb; |
| 8 | extern int __init pci_swiotlb_detect_override(void); |
| 9 | extern int __init pci_swiotlb_detect_4gb(void); |
| 10 | extern void __init pci_swiotlb_init(void); |
| 11 | extern void __init pci_swiotlb_late_init(void); |
| 12 | #else |
| 13 | #define swiotlb 0 |
| 14 | static inline int pci_swiotlb_detect_override(void) |
| 15 | { |
| 16 | return 0; |
| 17 | } |
| 18 | static inline int pci_swiotlb_detect_4gb(void) |
| 19 | { |
| 20 | return 0; |
| 21 | } |
| 22 | static inline void pci_swiotlb_init(void) |
| 23 | { |
| 24 | } |
| 25 | static inline void pci_swiotlb_late_init(void) |
| 26 | { |
| 27 | } |
| 28 | #endif |
| 29 | |
| 30 | static inline void dma_mark_clean(void *addr, size_t size) {} |
| 31 | |
| 32 | #endif /* _ASM_X86_SWIOTLB_H */ |