powerpc/fadump: Do not allow hot-remove memory from fadump reserved area.
[linux/fpc-iii.git] / drivers / xen / gntdev-dmabuf.h
blob7220a53d0fc5b36f96ab2c3b394118deed7bfc9b
1 /* SPDX-License-Identifier: GPL-2.0 */
3 /*
4 * Xen dma-buf functionality for gntdev.
6 * Copyright (c) 2018 Oleksandr Andrushchenko, EPAM Systems Inc.
7 */
9 #ifndef _GNTDEV_DMABUF_H
10 #define _GNTDEV_DMABUF_H
12 #include <xen/gntdev.h>
14 struct gntdev_dmabuf_priv;
15 struct gntdev_priv;
17 struct gntdev_dmabuf_priv *gntdev_dmabuf_init(void);
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);
33 #endif