linux/drivers/gpu/drm/xen/xen_drm_front_gem.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0 OR MIT */
   2
   3/*
   4 *  Xen para-virtual DRM device
   5 *
   6 * Copyright (C) 2016-2018 EPAM Systems Inc.
   7 *
   8 * Author: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
   9 */
  10
  11#ifndef __XEN_DRM_FRONT_GEM_H
  12#define __XEN_DRM_FRONT_GEM_H
  13
  14struct dma_buf_attachment;
  15struct drm_device;
  16struct drm_gem_object;
  17struct file;
  18struct sg_table;
  19struct vm_area_struct;
  20
  21struct drm_gem_object *xen_drm_front_gem_create(struct drm_device *dev,
  22                                                size_t size);
  23
  24struct drm_gem_object *
  25xen_drm_front_gem_import_sg_table(struct drm_device *dev,
  26                                  struct dma_buf_attachment *attach,
  27                                  struct sg_table *sgt);
  28
  29struct sg_table *xen_drm_front_gem_get_sg_table(struct drm_gem_object *gem_obj);
  30
  31struct page **xen_drm_front_gem_get_pages(struct drm_gem_object *obj);
  32
  33void xen_drm_front_gem_free_object_unlocked(struct drm_gem_object *gem_obj);
  34
  35int xen_drm_front_gem_mmap(struct file *filp, struct vm_area_struct *vma);
  36
  37void *xen_drm_front_gem_prime_vmap(struct drm_gem_object *gem_obj);
  38
  39void xen_drm_front_gem_prime_vunmap(struct drm_gem_object *gem_obj,
  40                                    void *vaddr);
  41
  42int xen_drm_front_gem_prime_mmap(struct drm_gem_object *gem_obj,
  43                                 struct vm_area_struct *vma);
  44
  45#endif /* __XEN_DRM_FRONT_GEM_H */
  46