diff options
Diffstat (limited to 'include/linux/swiotlb.h')
| -rw-r--r-- | include/linux/swiotlb.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h index 183f37c8a5e1..4ee479f2f355 100644 --- a/include/linux/swiotlb.h +++ b/include/linux/swiotlb.h | |||
| @@ -9,7 +9,13 @@ struct device; | |||
| 9 | struct page; | 9 | struct page; |
| 10 | struct scatterlist; | 10 | struct scatterlist; |
| 11 | 11 | ||
| 12 | extern int swiotlb_force; | 12 | enum swiotlb_force { |
| 13 | SWIOTLB_NORMAL, /* Default - depending on HW DMA mask etc. */ | ||
| 14 | SWIOTLB_FORCE, /* swiotlb=force */ | ||
| 15 | SWIOTLB_NO_FORCE, /* swiotlb=noforce */ | ||
| 16 | }; | ||
| 17 | |||
| 18 | extern enum swiotlb_force swiotlb_force; | ||
| 13 | 19 | ||
| 14 | /* | 20 | /* |
| 15 | * Maximum allowable number of contiguous slabs to map, | 21 | * Maximum allowable number of contiguous slabs to map, |
| @@ -108,11 +114,14 @@ swiotlb_dma_supported(struct device *hwdev, u64 mask); | |||
| 108 | 114 | ||
| 109 | #ifdef CONFIG_SWIOTLB | 115 | #ifdef CONFIG_SWIOTLB |
| 110 | extern void __init swiotlb_free(void); | 116 | extern void __init swiotlb_free(void); |
| 117 | unsigned int swiotlb_max_segment(void); | ||
| 111 | #else | 118 | #else |
| 112 | static inline void swiotlb_free(void) { } | 119 | static inline void swiotlb_free(void) { } |
| 120 | static inline unsigned int swiotlb_max_segment(void) { return 0; } | ||
| 113 | #endif | 121 | #endif |
| 114 | 122 | ||
| 115 | extern void swiotlb_print_info(void); | 123 | extern void swiotlb_print_info(void); |
| 116 | extern int is_swiotlb_buffer(phys_addr_t paddr); | 124 | extern int is_swiotlb_buffer(phys_addr_t paddr); |
| 125 | extern void swiotlb_set_max_segment(unsigned int); | ||
| 117 | 126 | ||
| 118 | #endif /* __LINUX_SWIOTLB_H */ | 127 | #endif /* __LINUX_SWIOTLB_H */ |
