b24413180f560 (Greg Kroah-Hartman 2017-11-01 15:07:57 +0100 1) /* SPDX-License-Identifier: GPL-2.0 */
b097186fd29d5 (Konrad Rzeszutek Wilk 2010-05-11 10:05:49 -0400 2) #ifndef __LINUX_SWIOTLB_XEN_H
b097186fd29d5 (Konrad Rzeszutek Wilk 2010-05-11 10:05:49 -0400 3) #define __LINUX_SWIOTLB_XEN_H
b097186fd29d5 (Konrad Rzeszutek Wilk 2010-05-11 10:05:49 -0400 4)
b097186fd29d5 (Konrad Rzeszutek Wilk 2010-05-11 10:05:49 -0400 5) #include <linux/swiotlb.h>
f5079a9a2a316 (Stefano Stabellini 2021-03-19 13:01:40 -0700 6) #include <asm/xen/swiotlb-xen.h>
b097186fd29d5 (Konrad Rzeszutek Wilk 2010-05-11 10:05:49 -0400 7)
297f7f8263611 (Stefano Stabellini 2020-07-10 15:34:21 -0700 8) void xen_dma_sync_for_cpu(struct device *dev, dma_addr_t handle,
63f0620cc552c (Stefano Stabellini 2020-07-10 15:34:26 -0700 9) size_t size, enum dma_data_direction dir);
995d3556694ed (Stefano Stabellini 2020-07-10 15:34:22 -0700 10) void xen_dma_sync_for_device(struct device *dev, dma_addr_t handle,
63f0620cc552c (Stefano Stabellini 2020-07-10 15:34:26 -0700 11) size_t size, enum dma_data_direction dir);
b4dca1512941a (Christoph Hellwig 2019-09-05 10:04:30 +0200 12)
a98f565462f0f (Christoph Hellwig 2021-03-01 08:44:32 +0100 13) int xen_swiotlb_init(void);
a98f565462f0f (Christoph Hellwig 2021-03-01 08:44:32 +0100 14) void __init xen_swiotlb_init_early(void);
dceb1a6819ab2 (Christoph Hellwig 2017-05-21 13:15:13 +0200 15) extern const struct dma_map_ops xen_swiotlb_dma_ops;
b097186fd29d5 (Konrad Rzeszutek Wilk 2010-05-11 10:05:49 -0400 16)
b097186fd29d5 (Konrad Rzeszutek Wilk 2010-05-11 10:05:49 -0400 17) #endif /* __LINUX_SWIOTLB_XEN_H */