1 #ifndef _ASM_X86_SWIOTLB_H
2 #define _ASM_X86_SWIOTLB_H
4 #include <linux/swiotlb.h>
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);
14 static inline int pci_swiotlb_detect_override(void)
18 static inline int pci_swiotlb_detect_4gb(void)
22 static inline void pci_swiotlb_init(void)
25 static inline void pci_swiotlb_late_init(void)
30 static inline void dma_mark_clean(void *addr
, size_t size
) {}
32 extern void *x86_swiotlb_alloc_coherent(struct device
*hwdev
, size_t size
,
33 dma_addr_t
*dma_handle
, gfp_t flags
,
34 struct dma_attrs
*attrs
);
35 extern void x86_swiotlb_free_coherent(struct device
*dev
, size_t size
,
36 void *vaddr
, dma_addr_t dma_addr
,
37 struct dma_attrs
*attrs
);
39 #endif /* _ASM_X86_SWIOTLB_H */