1 /* SPDX-License-Identifier: GPL-2.0 */
4 * Xen dma-buf functionality for gntdev.
6 * Copyright (c) 2018 Oleksandr Andrushchenko, EPAM Systems Inc.
9 #ifndef _GNTDEV_DMABUF_H
10 #define _GNTDEV_DMABUF_H
12 #include <xen/gntdev.h>
14 struct gntdev_dmabuf_priv;
17 struct gntdev_dmabuf_priv *gntdev_dmabuf_init(struct file *filp);
19 void gntdev_dmabuf_fini(struct gntdev_dmabuf_priv *priv);
21 long gntdev_ioctl_dmabuf_exp_from_refs(struct gntdev_priv *priv, int use_ptemod,
22 struct ioctl_gntdev_dmabuf_exp_from_refs __user *u);
24 long gntdev_ioctl_dmabuf_exp_wait_released(struct gntdev_priv *priv,
25 struct ioctl_gntdev_dmabuf_exp_wait_released __user *u);
27 long gntdev_ioctl_dmabuf_imp_to_refs(struct gntdev_priv *priv,
28 struct ioctl_gntdev_dmabuf_imp_to_refs __user *u);
30 long gntdev_ioctl_dmabuf_imp_release(struct gntdev_priv *priv,
31 struct ioctl_gntdev_dmabuf_imp_release __user *u);