Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _ASM_X86_SWIOTLB_XEN_H
0003 #define _ASM_X86_SWIOTLB_XEN_H
0004 
0005 #ifdef CONFIG_SWIOTLB_XEN
0006 extern int pci_xen_swiotlb_init_late(void);
0007 #else
0008 static inline int pci_xen_swiotlb_init_late(void) { return -ENXIO; }
0009 #endif
0010 
0011 int xen_swiotlb_fixup(void *buf, unsigned long nslabs);
0012 int xen_create_contiguous_region(phys_addr_t pstart, unsigned int order,
0013                 unsigned int address_bits,
0014                 dma_addr_t *dma_handle);
0015 void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order);
0016 
0017 #endif /* _ASM_X86_SWIOTLB_XEN_H */