aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/drmP.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-07-16 20:55:47 -0400
committerDave Airlie <airlied@linux.ie>2007-07-16 21:04:33 -0400
commitd4e2cbe9cb9219fc924191a6baa2369140cb5ea8 (patch)
treef4858a3794f47ea3ae36333ae7ca182a46913b65 /drivers/char/drm/drmP.h
parent62968144e673016180f530fdfe170874b80ab5a7 (diff)
drm: convert drawable code to using idr
This converts the code for allocating drawables to the Linux idr, Fixes from: Michel Dänzer <michel@tungstengraphics.com>, Kristian Høgsberg <krh@redhat.com> Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drmP.h')
-rw-r--r--drivers/char/drm/drmP.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h
index b1cafe36611e..0df87fc3dcb2 100644
--- a/drivers/char/drm/drmP.h
+++ b/drivers/char/drm/drmP.h
@@ -751,10 +751,7 @@ struct drm_device {
751 /** \name Drawable information */ 751 /** \name Drawable information */
752 /*@{ */ 752 /*@{ */
753 spinlock_t drw_lock; 753 spinlock_t drw_lock;
754 unsigned int drw_bitfield_length; 754 struct idr drw_idr;
755 u32 *drw_bitfield;
756 unsigned int drw_info_length;
757 struct drm_drawable_info **drw_info;
758 /*@} */ 755 /*@} */
759}; 756};
760 757
@@ -904,6 +901,7 @@ extern int drm_update_drawable_info(struct inode *inode, struct file *filp,
904 unsigned int cmd, unsigned long arg); 901 unsigned int cmd, unsigned long arg);
905extern struct drm_drawable_info *drm_get_drawable_info(struct drm_device *dev, 902extern struct drm_drawable_info *drm_get_drawable_info(struct drm_device *dev,
906 drm_drawable_t id); 903 drm_drawable_t id);
904extern void drm_drawable_free_all(struct drm_device *dev);
907 905
908 /* Authentication IOCTL support (drm_auth.h) */ 906 /* Authentication IOCTL support (drm_auth.h) */
909extern int drm_getmagic(struct inode *inode, struct file *filp, 907extern int drm_getmagic(struct inode *inode, struct file *filp,