Changeset 67405 in vbox for trunk/src/VBox/Additions/linux/drm
- Timestamp:
- Jun 14, 2017 1:16:54 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_prime.c
r66544 r67405 26 26 #include "vbox_drv.h" 27 27 28 /* Based on qxl_prime.c: 28 /* 29 * Based on qxl_prime.c: 29 30 * Empty Implementations as there should not be any other driver for a virtual 30 * device that might share buffers with vboxvideo */ 31 * device that might share buffers with vboxvideo 32 */ 31 33 32 34 int vbox_gem_prime_pin(struct drm_gem_object *obj) 33 35 { 34 35 36 WARN_ONCE(1, "not implemented"); 37 return -ENOSYS; 36 38 } 37 39 38 40 void vbox_gem_prime_unpin(struct drm_gem_object *obj) 39 41 { 40 42 WARN_ONCE(1, "not implemented"); 41 43 } 42 43 44 44 45 struct sg_table *vbox_gem_prime_get_sg_table(struct drm_gem_object *obj) 45 46 { 46 47 47 WARN_ONCE(1, "not implemented"); 48 return ERR_PTR(-ENOSYS); 48 49 } 49 50 50 struct drm_gem_object *vbox_gem_prime_import_sg_table( 51 struct drm_device *dev, 51 struct drm_gem_object *vbox_gem_prime_import_sg_table(struct drm_device *dev, 52 52 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) 53 53 size_t size, 54 54 #else 55 struct dma_buf_attachment *attach, 55 struct dma_buf_attachment 56 *attach, 56 57 #endif 57 58 struct sg_table *table) 58 59 { 59 60 60 WARN_ONCE(1, "not implemented"); 61 return ERR_PTR(-ENOSYS); 61 62 } 62 63 63 64 void *vbox_gem_prime_vmap(struct drm_gem_object *obj) 64 65 { 65 66 66 WARN_ONCE(1, "not implemented"); 67 return ERR_PTR(-ENOSYS); 67 68 } 68 69 69 70 void vbox_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr) 70 71 { 71 72 WARN_ONCE(1, "not implemented"); 72 73 } 73 74 74 int vbox_gem_prime_mmap(struct drm_gem_object *obj, 75 struct vm_area_struct *area) 75 int vbox_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *area) 76 76 { 77 78 77 WARN_ONCE(1, "not implemented"); 78 return -ENOSYS; 79 79 }
Note:
See TracChangeset
for help on using the changeset viewer.