summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/bochs/bochs.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-01-11 08:37:49 +0300
committerGerd Hoffmann <kraxel@redhat.com>2019-01-14 10:39:15 +0300
commit132a45340a4b80ade65817b4cdfc28c955c4fe11 (patch)
treee61579e028176c372a8e33644343125700870572 /drivers/gpu/drm/bochs/bochs.h
parent0bcdda5e35d717a394d8496f4d4181ddd82d0c12 (diff)
downloadlinux-132a45340a4b80ade65817b4cdfc28c955c4fe11.tar.xz
drm/bochs: add basic prime support
Just enough to make the generic framebuffer emulation happy. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20190111053752.4004-14-kraxel@redhat.com
Diffstat (limited to 'drivers/gpu/drm/bochs/bochs.h')
-rw-r--r--drivers/gpu/drm/bochs/bochs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/bochs/bochs.h b/drivers/gpu/drm/bochs/bochs.h
index d0d474e06fa7..ede22beb85e6 100644
--- a/drivers/gpu/drm/bochs/bochs.h
+++ b/drivers/gpu/drm/bochs/bochs.h
@@ -145,6 +145,13 @@ int bochs_dumb_mmap_offset(struct drm_file *file, struct drm_device *dev,
int bochs_bo_pin(struct bochs_bo *bo, u32 pl_flag);
int bochs_bo_unpin(struct bochs_bo *bo);
+int bochs_gem_prime_pin(struct drm_gem_object *obj);
+void bochs_gem_prime_unpin(struct drm_gem_object *obj);
+void *bochs_gem_prime_vmap(struct drm_gem_object *obj);
+void bochs_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr);
+int bochs_gem_prime_mmap(struct drm_gem_object *obj,
+ struct vm_area_struct *vma);
+
/* bochs_kms.c */
int bochs_kms_init(struct bochs_device *bochs);
void bochs_kms_fini(struct bochs_device *bochs);