1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
4 * Xen para-virtual DRM device
6 * Copyright (C) 2016-2018 EPAM Systems Inc.
8 * Author: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
11 #ifndef __XEN_DRM_FRONT_GEM_H
12 #define __XEN_DRM_FRONT_GEM_H
16 struct drm_gem_object
*xen_drm_front_gem_create(struct drm_device
*dev
,
19 struct drm_gem_object
*
20 xen_drm_front_gem_import_sg_table(struct drm_device
*dev
,
21 struct dma_buf_attachment
*attach
,
22 struct sg_table
*sgt
);
24 struct sg_table
*xen_drm_front_gem_get_sg_table(struct drm_gem_object
*gem_obj
);
26 struct page
**xen_drm_front_gem_get_pages(struct drm_gem_object
*obj
);
28 void xen_drm_front_gem_free_object_unlocked(struct drm_gem_object
*gem_obj
);
30 int xen_drm_front_gem_mmap(struct file
*filp
, struct vm_area_struct
*vma
);
32 void *xen_drm_front_gem_prime_vmap(struct drm_gem_object
*gem_obj
);
34 void xen_drm_front_gem_prime_vunmap(struct drm_gem_object
*gem_obj
,
37 int xen_drm_front_gem_prime_mmap(struct drm_gem_object
*gem_obj
,
38 struct vm_area_struct
*vma
);
40 #endif /* __XEN_DRM_FRONT_GEM_H */