diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-08 05:13:14 -0400 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-08 05:13:14 -0400 |
commit | b970be7c4114173e733309eec092a0269e1e6a61 (patch) | |
tree | 94b1c201d6330186ee5831d149818143cf9216e3 /include | |
parent | c3add4b63438555d5e88c5893d238ab80d1f5959 (diff) | |
parent | cbc60ca04b342a4e1f2a1086a7277c077f07dbed (diff) |
Merge remote branch 'airlied/drm-core-next' into HEAD
Diffstat (limited to 'include')
-rw-r--r-- | include/drm/drmP.h | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 7809d230adee..30e827aeba02 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 | ||
@@ -808,7 +799,6 @@ struct drm_driver { | |||
808 | */ | 799 | */ |
809 | int (*gem_init_object) (struct drm_gem_object *obj); | 800 | int (*gem_init_object) (struct drm_gem_object *obj); |
810 | void (*gem_free_object) (struct drm_gem_object *obj); | 801 | void (*gem_free_object) (struct drm_gem_object *obj); |
811 | void (*gem_free_object_unlocked) (struct drm_gem_object *obj); | ||
812 | 802 | ||
813 | /* vga arb irq handler */ | 803 | /* vga arb irq handler */ |
814 | void (*vgaarb_irq)(struct drm_device *dev, bool state); | 804 | void (*vgaarb_irq)(struct drm_device *dev, bool state); |
@@ -973,7 +963,6 @@ struct drm_device { | |||
973 | __volatile__ long context_flag; /**< Context swapping flag */ | 963 | __volatile__ long context_flag; /**< Context swapping flag */ |
974 | __volatile__ long interrupt_flag; /**< Interruption handler flag */ | 964 | __volatile__ long interrupt_flag; /**< Interruption handler flag */ |
975 | __volatile__ long dma_flag; /**< DMA dispatch flag */ | 965 | __volatile__ long dma_flag; /**< DMA dispatch flag */ |
976 | struct timer_list timer; /**< Timer for delaying ctx switch */ | ||
977 | wait_queue_head_t context_wait; /**< Processes waiting on ctx switch */ | 966 | wait_queue_head_t context_wait; /**< Processes waiting on ctx switch */ |
978 | int last_checked; /**< Last context checked for DMA */ | 967 | int last_checked; /**< Last context checked for DMA */ |
979 | int last_context; /**< Last current context */ | 968 | int last_context; /**< Last current context */ |
@@ -1046,12 +1035,6 @@ struct drm_device { | |||
1046 | struct drm_minor *control; /**< Control node for card */ | 1035 | struct drm_minor *control; /**< Control node for card */ |
1047 | struct drm_minor *primary; /**< render type primary screen head */ | 1036 | struct drm_minor *primary; /**< render type primary screen head */ |
1048 | 1037 | ||
1049 | /** \name Drawable information */ | ||
1050 | /*@{ */ | ||
1051 | spinlock_t drw_lock; | ||
1052 | struct idr drw_idr; | ||
1053 | /*@} */ | ||
1054 | |||
1055 | struct drm_mode_config mode_config; /**< Current mode config */ | 1038 | struct drm_mode_config mode_config; /**< Current mode config */ |
1056 | 1039 | ||
1057 | /** \name GEM information */ | 1040 | /** \name GEM information */ |
@@ -1175,8 +1158,6 @@ extern int drm_release(struct inode *inode, struct file *filp); | |||
1175 | extern int drm_mmap(struct file *filp, struct vm_area_struct *vma); | 1158 | extern int drm_mmap(struct file *filp, struct vm_area_struct *vma); |
1176 | extern int drm_mmap_locked(struct file *filp, struct vm_area_struct *vma); | 1159 | extern int drm_mmap_locked(struct file *filp, struct vm_area_struct *vma); |
1177 | extern void drm_vm_open_locked(struct vm_area_struct *vma); | 1160 | extern void drm_vm_open_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); | 1161 | extern unsigned int drm_poll(struct file *filp, struct poll_table_struct *wait); |
1181 | 1162 | ||
1182 | /* Memory management support (drm_memory.h) */ | 1163 | /* Memory management support (drm_memory.h) */ |
@@ -1186,8 +1167,7 @@ extern int drm_mem_info(char *buf, char **start, off_t offset, | |||
1186 | int request, int *eof, void *data); | 1167 | int request, int *eof, void *data); |
1187 | extern void *drm_realloc(void *oldpt, size_t oldsize, size_t size, int area); | 1168 | extern void *drm_realloc(void *oldpt, size_t oldsize, size_t size, int area); |
1188 | 1169 | ||
1189 | extern DRM_AGP_MEM *drm_alloc_agp(struct drm_device *dev, int pages, u32 type); | 1170 | 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); | 1171 | 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, | 1172 | extern DRM_AGP_MEM *drm_agp_bind_pages(struct drm_device *dev, |
1193 | struct page **pages, | 1173 | struct page **pages, |
@@ -1239,17 +1219,6 @@ extern int drm_setsareactx(struct drm_device *dev, void *data, | |||
1239 | extern int drm_getsareactx(struct drm_device *dev, void *data, | 1219 | extern int drm_getsareactx(struct drm_device *dev, void *data, |
1240 | struct drm_file *file_priv); | 1220 | struct drm_file *file_priv); |
1241 | 1221 | ||
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) */ | 1222 | /* Authentication IOCTL support (drm_auth.h) */ |
1254 | extern int drm_getmagic(struct drm_device *dev, void *data, | 1223 | extern int drm_getmagic(struct drm_device *dev, void *data, |
1255 | struct drm_file *file_priv); | 1224 | struct drm_file *file_priv); |
@@ -1264,7 +1233,6 @@ extern int drm_lock(struct drm_device *dev, void *data, | |||
1264 | struct drm_file *file_priv); | 1233 | struct drm_file *file_priv); |
1265 | extern int drm_unlock(struct drm_device *dev, void *data, | 1234 | extern int drm_unlock(struct drm_device *dev, void *data, |
1266 | struct drm_file *file_priv); | 1235 | 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); | 1236 | 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); | 1237 | extern void drm_idlelock_take(struct drm_lock_data *lock_data); |
1270 | extern void drm_idlelock_release(struct drm_lock_data *lock_data); | 1238 | extern void drm_idlelock_release(struct drm_lock_data *lock_data); |
@@ -1359,10 +1327,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); | 1327 | 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, | 1328 | extern int drm_agp_bind_ioctl(struct drm_device *dev, void *data, |
1361 | struct drm_file *file_priv); | 1329 | 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); | 1330 | extern void drm_agp_chipset_flush(struct drm_device *dev); |
1367 | 1331 | ||
1368 | /* Stub support (drm_stub.h) */ | 1332 | /* Stub support (drm_stub.h) */ |