diff options
| author | David Herrmann <dh.herrmann@gmail.com> | 2014-08-29 06:12:46 -0400 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2014-09-10 03:43:34 -0400 |
| commit | bb6d822ec546603bca01f7ba17c52f0f4f80e329 (patch) | |
| tree | d7edf6819c03a3195dccd33e9bc242553c00f28a /include | |
| parent | d4f68a7506e924e28a9153933076628002ba8bbc (diff) | |
drm: move drm-lock API to drm_legacy.h
Same as the other legacy APIs, most of this is internal, so prefix it with
drm_legacy_* and move into drm_legacy.h.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/drm/drmP.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 0e73aad225b2..be1160fa5ebc 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
| @@ -1143,22 +1143,11 @@ void drm_clflush_pages(struct page *pages[], unsigned long num_pages); | |||
| 1143 | void drm_clflush_sg(struct sg_table *st); | 1143 | void drm_clflush_sg(struct sg_table *st); |
| 1144 | void drm_clflush_virt_range(void *addr, unsigned long length); | 1144 | void drm_clflush_virt_range(void *addr, unsigned long length); |
| 1145 | 1145 | ||
| 1146 | /* Locking IOCTL support (drm_lock.h) */ | ||
| 1147 | extern int drm_lock(struct drm_device *dev, void *data, | ||
| 1148 | struct drm_file *file_priv); | ||
| 1149 | extern int drm_unlock(struct drm_device *dev, void *data, | ||
| 1150 | struct drm_file *file_priv); | ||
| 1151 | extern int drm_lock_free(struct drm_lock_data *lock_data, unsigned int context); | ||
| 1152 | extern void drm_idlelock_take(struct drm_lock_data *lock_data); | ||
| 1153 | extern void drm_idlelock_release(struct drm_lock_data *lock_data); | ||
| 1154 | |||
| 1155 | /* | 1146 | /* |
| 1156 | * These are exported to drivers so that they can implement fencing using | 1147 | * These are exported to drivers so that they can implement fencing using |
| 1157 | * DMA quiscent + idle. DMA quiescent usually requires the hardware lock. | 1148 | * DMA quiscent + idle. DMA quiescent usually requires the hardware lock. |
| 1158 | */ | 1149 | */ |
| 1159 | 1150 | ||
| 1160 | extern int drm_i_have_hw_lock(struct drm_device *dev, struct drm_file *file_priv); | ||
| 1161 | |||
| 1162 | /* DMA support (drm_dma.h) */ | 1151 | /* DMA support (drm_dma.h) */ |
| 1163 | extern int drm_legacy_dma_setup(struct drm_device *dev); | 1152 | extern int drm_legacy_dma_setup(struct drm_device *dev); |
| 1164 | extern void drm_legacy_dma_takedown(struct drm_device *dev); | 1153 | extern void drm_legacy_dma_takedown(struct drm_device *dev); |
| @@ -1363,6 +1352,9 @@ int drm_legacy_addbufs_pci(struct drm_device *d, struct drm_buf_desc *req); | |||
| 1363 | 1352 | ||
| 1364 | void drm_legacy_vma_flush(struct drm_device *d); | 1353 | void drm_legacy_vma_flush(struct drm_device *d); |
| 1365 | 1354 | ||
| 1355 | void drm_legacy_idlelock_take(struct drm_lock_data *lock); | ||
| 1356 | void drm_legacy_idlelock_release(struct drm_lock_data *lock); | ||
| 1357 | |||
| 1366 | /* sysfs support (drm_sysfs.c) */ | 1358 | /* sysfs support (drm_sysfs.c) */ |
| 1367 | struct drm_sysfs_class; | 1359 | struct drm_sysfs_class; |
| 1368 | extern struct class *drm_sysfs_create(struct module *owner, char *name); | 1360 | extern struct class *drm_sysfs_create(struct module *owner, char *name); |
