diff options
Diffstat (limited to 'include/drm/drmP.h')
| -rw-r--r-- | include/drm/drmP.h | 45 |
1 files changed, 1 insertions, 44 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 4c9461a4f9e6..274eaaa15c36 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
| @@ -699,13 +699,8 @@ struct drm_driver { | |||
| 699 | int (*suspend) (struct drm_device *, pm_message_t state); | 699 | int (*suspend) (struct drm_device *, pm_message_t state); |
| 700 | int (*resume) (struct drm_device *); | 700 | int (*resume) (struct drm_device *); |
| 701 | int (*dma_ioctl) (struct drm_device *dev, void *data, struct drm_file *file_priv); | 701 | int (*dma_ioctl) (struct drm_device *dev, void *data, struct drm_file *file_priv); |
| 702 | void (*dma_ready) (struct drm_device *); | ||
| 703 | int (*dma_quiescent) (struct drm_device *); | 702 | int (*dma_quiescent) (struct drm_device *); |
| 704 | int (*context_ctor) (struct drm_device *dev, int context); | ||
| 705 | int (*context_dtor) (struct drm_device *dev, int context); | 703 | int (*context_dtor) (struct drm_device *dev, int context); |
| 706 | int (*kernel_context_switch) (struct drm_device *dev, int old, | ||
| 707 | int new); | ||
| 708 | void (*kernel_context_switch_unlock) (struct drm_device *dev); | ||
| 709 | 704 | ||
| 710 | /** | 705 | /** |
| 711 | * get_vblank_counter - get raw hardware vblank counter | 706 | * get_vblank_counter - get raw hardware vblank counter |
| @@ -777,8 +772,6 @@ struct drm_driver { | |||
| 777 | struct drm_file *file_priv); | 772 | struct drm_file *file_priv); |
| 778 | void (*reclaim_buffers_idlelocked) (struct drm_device *dev, | 773 | void (*reclaim_buffers_idlelocked) (struct drm_device *dev, |
| 779 | struct drm_file *file_priv); | 774 | struct drm_file *file_priv); |
| 780 | resource_size_t (*get_map_ofs) (struct drm_local_map * map); | ||
| 781 | resource_size_t (*get_reg_ofs) (struct drm_device *dev); | ||
| 782 | void (*set_version) (struct drm_device *dev, | 775 | void (*set_version) (struct drm_device *dev, |
| 783 | struct drm_set_version *sv); | 776 | struct drm_set_version *sv); |
| 784 | 777 | ||
| @@ -795,8 +788,6 @@ struct drm_driver { | |||
| 795 | void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv, | 788 | void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv, |
| 796 | bool from_release); | 789 | bool from_release); |
| 797 | 790 | ||
| 798 | int (*proc_init)(struct drm_minor *minor); | ||
| 799 | void (*proc_cleanup)(struct drm_minor *minor); | ||
| 800 | int (*debugfs_init)(struct drm_minor *minor); | 791 | int (*debugfs_init)(struct drm_minor *minor); |
| 801 | void (*debugfs_cleanup)(struct drm_minor *minor); | 792 | void (*debugfs_cleanup)(struct drm_minor *minor); |
| 802 | 793 | ||
| @@ -972,7 +963,6 @@ struct drm_device { | |||
| 972 | __volatile__ long context_flag; /**< Context swapping flag */ | 963 | __volatile__ long context_flag; /**< Context swapping flag */ |
| 973 | __volatile__ long interrupt_flag; /**< Interruption handler flag */ | 964 | __volatile__ long interrupt_flag; /**< Interruption handler flag */ |
| 974 | __volatile__ long dma_flag; /**< DMA dispatch flag */ | 965 | __volatile__ long dma_flag; /**< DMA dispatch flag */ |
| 975 | struct timer_list timer; /**< Timer for delaying ctx switch */ | ||
| 976 | wait_queue_head_t context_wait; /**< Processes waiting on ctx switch */ | 966 | wait_queue_head_t context_wait; /**< Processes waiting on ctx switch */ |
| 977 | int last_checked; /**< Last context checked for DMA */ | 967 | int last_checked; /**< Last context checked for DMA */ |
| 978 | int last_context; /**< Last current context */ | 968 | int last_context; /**< Last current context */ |
| @@ -1045,25 +1035,12 @@ struct drm_device { | |||
| 1045 | struct drm_minor *control; /**< Control node for card */ | 1035 | struct drm_minor *control; /**< Control node for card */ |
| 1046 | struct drm_minor *primary; /**< render type primary screen head */ | 1036 | struct drm_minor *primary; /**< render type primary screen head */ |
| 1047 | 1037 | ||
| 1048 | /** \name Drawable information */ | ||
| 1049 | /*@{ */ | ||
| 1050 | spinlock_t drw_lock; | ||
| 1051 | struct idr drw_idr; | ||
| 1052 | /*@} */ | ||
| 1053 | |||
| 1054 | struct drm_mode_config mode_config; /**< Current mode config */ | 1038 | struct drm_mode_config mode_config; /**< Current mode config */ |
| 1055 | 1039 | ||
| 1056 | /** \name GEM information */ | 1040 | /** \name GEM information */ |
| 1057 | /*@{ */ | 1041 | /*@{ */ |
| 1058 | spinlock_t object_name_lock; | 1042 | spinlock_t object_name_lock; |
| 1059 | struct idr object_name_idr; | 1043 | struct idr object_name_idr; |
| 1060 | atomic_t object_count; | ||
| 1061 | atomic_t object_memory; | ||
| 1062 | atomic_t pin_count; | ||
| 1063 | atomic_t pin_memory; | ||
| 1064 | atomic_t gtt_count; | ||
| 1065 | atomic_t gtt_memory; | ||
| 1066 | uint32_t gtt_total; | ||
| 1067 | uint32_t invalidate_domains; /* domains pending invalidation */ | 1044 | uint32_t invalidate_domains; /* domains pending invalidation */ |
| 1068 | uint32_t flush_domains; /* domains pending flush */ | 1045 | uint32_t flush_domains; /* domains pending flush */ |
| 1069 | /*@} */ | 1046 | /*@} */ |
| @@ -1175,8 +1152,6 @@ extern int drm_mmap(struct file *filp, struct vm_area_struct *vma); | |||
| 1175 | extern int drm_mmap_locked(struct file *filp, struct vm_area_struct *vma); | 1152 | extern int drm_mmap_locked(struct file *filp, struct vm_area_struct *vma); |
| 1176 | extern void drm_vm_open_locked(struct vm_area_struct *vma); | 1153 | extern void drm_vm_open_locked(struct vm_area_struct *vma); |
| 1177 | extern void drm_vm_close_locked(struct vm_area_struct *vma); | 1154 | extern void drm_vm_close_locked(struct vm_area_struct *vma); |
| 1178 | extern resource_size_t drm_core_get_map_ofs(struct drm_local_map * map); | ||
| 1179 | extern resource_size_t drm_core_get_reg_ofs(struct drm_device *dev); | ||
| 1180 | extern unsigned int drm_poll(struct file *filp, struct poll_table_struct *wait); | 1155 | extern unsigned int drm_poll(struct file *filp, struct poll_table_struct *wait); |
| 1181 | 1156 | ||
| 1182 | /* Memory management support (drm_memory.h) */ | 1157 | /* Memory management support (drm_memory.h) */ |
| @@ -1186,8 +1161,7 @@ extern int drm_mem_info(char *buf, char **start, off_t offset, | |||
| 1186 | int request, int *eof, void *data); | 1161 | int request, int *eof, void *data); |
| 1187 | extern void *drm_realloc(void *oldpt, size_t oldsize, size_t size, int area); | 1162 | extern void *drm_realloc(void *oldpt, size_t oldsize, size_t size, int area); |
| 1188 | 1163 | ||
| 1189 | extern DRM_AGP_MEM *drm_alloc_agp(struct drm_device *dev, int pages, u32 type); | 1164 | extern void drm_free_agp(DRM_AGP_MEM * handle, int pages); |
| 1190 | extern int drm_free_agp(DRM_AGP_MEM * handle, int pages); | ||
| 1191 | extern int drm_bind_agp(DRM_AGP_MEM * handle, unsigned int start); | 1165 | extern int drm_bind_agp(DRM_AGP_MEM * handle, unsigned int start); |
| 1192 | extern DRM_AGP_MEM *drm_agp_bind_pages(struct drm_device *dev, | 1166 | extern DRM_AGP_MEM *drm_agp_bind_pages(struct drm_device *dev, |
| 1193 | struct page **pages, | 1167 | struct page **pages, |
| @@ -1239,17 +1213,6 @@ extern int drm_setsareactx(struct drm_device *dev, void *data, | |||
| 1239 | extern int drm_getsareactx(struct drm_device *dev, void *data, | 1213 | extern int drm_getsareactx(struct drm_device *dev, void *data, |
| 1240 | struct drm_file *file_priv); | 1214 | struct drm_file *file_priv); |
| 1241 | 1215 | ||
| 1242 | /* Drawable IOCTL support (drm_drawable.h) */ | ||
| 1243 | extern int drm_adddraw(struct drm_device *dev, void *data, | ||
| 1244 | struct drm_file *file_priv); | ||
| 1245 | extern int drm_rmdraw(struct drm_device *dev, void *data, | ||
| 1246 | struct drm_file *file_priv); | ||
| 1247 | extern int drm_update_drawable_info(struct drm_device *dev, void *data, | ||
| 1248 | struct drm_file *file_priv); | ||
| 1249 | extern struct drm_drawable_info *drm_get_drawable_info(struct drm_device *dev, | ||
| 1250 | drm_drawable_t id); | ||
| 1251 | extern void drm_drawable_free_all(struct drm_device *dev); | ||
| 1252 | |||
| 1253 | /* Authentication IOCTL support (drm_auth.h) */ | 1216 | /* Authentication IOCTL support (drm_auth.h) */ |
| 1254 | extern int drm_getmagic(struct drm_device *dev, void *data, | 1217 | extern int drm_getmagic(struct drm_device *dev, void *data, |
| 1255 | struct drm_file *file_priv); | 1218 | struct drm_file *file_priv); |
| @@ -1264,7 +1227,6 @@ extern int drm_lock(struct drm_device *dev, void *data, | |||
| 1264 | struct drm_file *file_priv); | 1227 | struct drm_file *file_priv); |
| 1265 | extern int drm_unlock(struct drm_device *dev, void *data, | 1228 | extern int drm_unlock(struct drm_device *dev, void *data, |
| 1266 | struct drm_file *file_priv); | 1229 | struct drm_file *file_priv); |
| 1267 | extern int drm_lock_take(struct drm_lock_data *lock_data, unsigned int context); | ||
| 1268 | extern int drm_lock_free(struct drm_lock_data *lock_data, unsigned int context); | 1230 | extern int drm_lock_free(struct drm_lock_data *lock_data, unsigned int context); |
| 1269 | extern void drm_idlelock_take(struct drm_lock_data *lock_data); | 1231 | extern void drm_idlelock_take(struct drm_lock_data *lock_data); |
| 1270 | extern void drm_idlelock_release(struct drm_lock_data *lock_data); | 1232 | extern void drm_idlelock_release(struct drm_lock_data *lock_data); |
| @@ -1359,10 +1321,6 @@ extern int drm_agp_unbind_ioctl(struct drm_device *dev, void *data, | |||
| 1359 | extern int drm_agp_bind(struct drm_device *dev, struct drm_agp_binding *request); | 1321 | extern int drm_agp_bind(struct drm_device *dev, struct drm_agp_binding *request); |
| 1360 | extern int drm_agp_bind_ioctl(struct drm_device *dev, void *data, | 1322 | extern int drm_agp_bind_ioctl(struct drm_device *dev, void *data, |
| 1361 | struct drm_file *file_priv); | 1323 | struct drm_file *file_priv); |
| 1362 | extern DRM_AGP_MEM *drm_agp_allocate_memory(struct agp_bridge_data *bridge, size_t pages, u32 type); | ||
| 1363 | extern int drm_agp_free_memory(DRM_AGP_MEM * handle); | ||
| 1364 | extern int drm_agp_bind_memory(DRM_AGP_MEM * handle, off_t start); | ||
| 1365 | extern int drm_agp_unbind_memory(DRM_AGP_MEM * handle); | ||
| 1366 | extern void drm_agp_chipset_flush(struct drm_device *dev); | 1324 | extern void drm_agp_chipset_flush(struct drm_device *dev); |
| 1367 | 1325 | ||
| 1368 | /* Stub support (drm_stub.h) */ | 1326 | /* Stub support (drm_stub.h) */ |
| @@ -1414,7 +1372,6 @@ extern int drm_bufs_info(struct seq_file *m, void *data); | |||
| 1414 | extern int drm_vblank_info(struct seq_file *m, void *data); | 1372 | extern int drm_vblank_info(struct seq_file *m, void *data); |
| 1415 | extern int drm_clients_info(struct seq_file *m, void* data); | 1373 | extern int drm_clients_info(struct seq_file *m, void* data); |
| 1416 | extern int drm_gem_name_info(struct seq_file *m, void *data); | 1374 | extern int drm_gem_name_info(struct seq_file *m, void *data); |
| 1417 | extern int drm_gem_object_info(struct seq_file *m, void* data); | ||
| 1418 | 1375 | ||
| 1419 | #if DRM_DEBUG_CODE | 1376 | #if DRM_DEBUG_CODE |
| 1420 | extern int drm_vma_info(struct seq_file *m, void *data); | 1377 | extern int drm_vma_info(struct seq_file *m, void *data); |
