xref: /linux/arch/x86/include/asm/xen/swiotlb-xen.h (revision da1d9caf95def6f0320819cf941c9fd1069ba9e1)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_SWIOTLB_XEN_H
3 #define _ASM_X86_SWIOTLB_XEN_H
4 
5 #ifdef CONFIG_SWIOTLB_XEN
6 extern int pci_xen_swiotlb_init_late(void);
7 #else
8 static inline int pci_xen_swiotlb_init_late(void) { return -ENXIO; }
9 #endif
10 
11 int xen_swiotlb_fixup(void *buf, unsigned long nslabs);
12 int xen_create_contiguous_region(phys_addr_t pstart, unsigned int order,
13 				unsigned int address_bits,
14 				dma_addr_t *dma_handle);
15 void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order);
16 
17 #endif /* _ASM_X86_SWIOTLB_XEN_H */
18