blob: 3d9b9cf9d5a16aa441219a19ca81677a66be3dca [file] [log] [blame]
Oleksandr Andrushchenko932d6562018-07-20 12:01:48 +03001/* SPDX-License-Identifier: GPL-2.0 */
2
3/*
4 * Xen dma-buf functionality for gntdev.
5 *
6 * Copyright (c) 2018 Oleksandr Andrushchenko, EPAM Systems Inc.
7 */
8
9#ifndef _GNTDEV_DMABUF_H
10#define _GNTDEV_DMABUF_H
11
12#include <xen/gntdev.h>
13
14struct gntdev_dmabuf_priv;
15struct gntdev_priv;
16
Oleksandr Andrushchenkofa13e662019-02-14 16:23:20 +020017struct gntdev_dmabuf_priv *gntdev_dmabuf_init(struct file *filp);
Oleksandr Andrushchenko932d6562018-07-20 12:01:48 +030018
19void gntdev_dmabuf_fini(struct gntdev_dmabuf_priv *priv);
20
21long gntdev_ioctl_dmabuf_exp_from_refs(struct gntdev_priv *priv, int use_ptemod,
22 struct ioctl_gntdev_dmabuf_exp_from_refs __user *u);
23
24long gntdev_ioctl_dmabuf_exp_wait_released(struct gntdev_priv *priv,
25 struct ioctl_gntdev_dmabuf_exp_wait_released __user *u);
26
27long gntdev_ioctl_dmabuf_imp_to_refs(struct gntdev_priv *priv,
28 struct ioctl_gntdev_dmabuf_imp_to_refs __user *u);
29
30long gntdev_ioctl_dmabuf_imp_release(struct gntdev_priv *priv,
31 struct ioctl_gntdev_dmabuf_imp_release __user *u);
32
33#endif