diff options
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r-- | include/drm/drmP.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index dd731043fecd..31ad880ca2ef 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -755,11 +755,11 @@ struct drm_driver { | |||
755 | * @dev: DRM device | 755 | * @dev: DRM device |
756 | * @crtc: counter to fetch | 756 | * @crtc: counter to fetch |
757 | * | 757 | * |
758 | * Driver callback for fetching a raw hardware vblank counter | 758 | * Driver callback for fetching a raw hardware vblank counter for @crtc. |
759 | * for @crtc. If a device doesn't have a hardware counter, the | 759 | * If a device doesn't have a hardware counter, the driver can simply |
760 | * driver can simply return the value of drm_vblank_count and | 760 | * return the value of drm_vblank_count. The DRM core will account for |
761 | * make the enable_vblank() and disable_vblank() hooks into no-ops, | 761 | * missed vblank events while interrupts where disabled based on system |
762 | * leaving interrupts enabled at all times. | 762 | * timestamps. |
763 | * | 763 | * |
764 | * Wraparound handling and loss of events due to modesetting is dealt | 764 | * Wraparound handling and loss of events due to modesetting is dealt |
765 | * with in the DRM core code. | 765 | * with in the DRM core code. |
@@ -941,7 +941,7 @@ struct drm_driver { | |||
941 | uint32_t handle); | 941 | uint32_t handle); |
942 | 942 | ||
943 | /* Driver private ops for this object */ | 943 | /* Driver private ops for this object */ |
944 | struct vm_operations_struct *gem_vm_ops; | 944 | const struct vm_operations_struct *gem_vm_ops; |
945 | 945 | ||
946 | int major; | 946 | int major; |
947 | int minor; | 947 | int minor; |
@@ -1309,8 +1309,8 @@ extern int drm_release(struct inode *inode, struct file *filp); | |||
1309 | /* Mapping support (drm_vm.h) */ | 1309 | /* Mapping support (drm_vm.h) */ |
1310 | extern int drm_mmap(struct file *filp, struct vm_area_struct *vma); | 1310 | extern int drm_mmap(struct file *filp, struct vm_area_struct *vma); |
1311 | extern int drm_mmap_locked(struct file *filp, struct vm_area_struct *vma); | 1311 | extern int drm_mmap_locked(struct file *filp, struct vm_area_struct *vma); |
1312 | extern void drm_vm_open_locked(struct vm_area_struct *vma); | 1312 | extern void drm_vm_open_locked(struct drm_device *dev, struct vm_area_struct *vma); |
1313 | extern void drm_vm_close_locked(struct vm_area_struct *vma); | 1313 | extern void drm_vm_close_locked(struct drm_device *dev, struct vm_area_struct *vma); |
1314 | extern unsigned int drm_poll(struct file *filp, struct poll_table_struct *wait); | 1314 | extern unsigned int drm_poll(struct file *filp, struct poll_table_struct *wait); |
1315 | 1315 | ||
1316 | /* Memory management support (drm_memory.h) */ | 1316 | /* Memory management support (drm_memory.h) */ |
@@ -1378,6 +1378,7 @@ extern int drm_remove_magic(struct drm_master *master, drm_magic_t magic); | |||
1378 | 1378 | ||
1379 | /* Cache management (drm_cache.c) */ | 1379 | /* Cache management (drm_cache.c) */ |
1380 | void drm_clflush_pages(struct page *pages[], unsigned long num_pages); | 1380 | void drm_clflush_pages(struct page *pages[], unsigned long num_pages); |
1381 | void drm_clflush_virt_range(char *addr, unsigned long length); | ||
1381 | 1382 | ||
1382 | /* Locking IOCTL support (drm_lock.h) */ | 1383 | /* Locking IOCTL support (drm_lock.h) */ |
1383 | extern int drm_lock(struct drm_device *dev, void *data, | 1384 | extern int drm_lock(struct drm_device *dev, void *data, |
@@ -1557,6 +1558,8 @@ extern int drm_prime_handle_to_fd_ioctl(struct drm_device *dev, void *data, | |||
1557 | extern int drm_prime_fd_to_handle_ioctl(struct drm_device *dev, void *data, | 1558 | extern int drm_prime_fd_to_handle_ioctl(struct drm_device *dev, void *data, |
1558 | struct drm_file *file_priv); | 1559 | struct drm_file *file_priv); |
1559 | 1560 | ||
1561 | extern int drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages, | ||
1562 | dma_addr_t *addrs, int max_pages); | ||
1560 | extern struct sg_table *drm_prime_pages_to_sg(struct page **pages, int nr_pages); | 1563 | extern struct sg_table *drm_prime_pages_to_sg(struct page **pages, int nr_pages); |
1561 | extern void drm_prime_gem_destroy(struct drm_gem_object *obj, struct sg_table *sg); | 1564 | extern void drm_prime_gem_destroy(struct drm_gem_object *obj, struct sg_table *sg); |
1562 | 1565 | ||