gntdev-dmabuf.h 943 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Xen dma-buf functionality for gntdev.
  4. *
  5. * Copyright (c) 2018 Oleksandr Andrushchenko, EPAM Systems Inc.
  6. */
  7. #ifndef _GNTDEV_DMABUF_H
  8. #define _GNTDEV_DMABUF_H
  9. #include <xen/gntdev.h>
  10. struct gntdev_dmabuf_priv;
  11. struct gntdev_priv;
  12. struct gntdev_dmabuf_priv *gntdev_dmabuf_init(struct file *filp);
  13. void gntdev_dmabuf_fini(struct gntdev_dmabuf_priv *priv);
  14. long gntdev_ioctl_dmabuf_exp_from_refs(struct gntdev_priv *priv, int use_ptemod,
  15. struct ioctl_gntdev_dmabuf_exp_from_refs __user *u);
  16. long gntdev_ioctl_dmabuf_exp_wait_released(struct gntdev_priv *priv,
  17. struct ioctl_gntdev_dmabuf_exp_wait_released __user *u);
  18. long gntdev_ioctl_dmabuf_imp_to_refs(struct gntdev_priv *priv,
  19. struct ioctl_gntdev_dmabuf_imp_to_refs __user *u);
  20. long gntdev_ioctl_dmabuf_imp_release(struct gntdev_priv *priv,
  21. struct ioctl_gntdev_dmabuf_imp_release __user *u);
  22. #endif