]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drm: remove sarea typedefs
authorDave Airlie <airlied@linux.ie>
Thu, 12 Jul 2007 00:35:02 +0000 (10:35 +1000)
committerDave Airlie <airlied@linux.ie>
Thu, 12 Jul 2007 00:35:02 +0000 (10:35 +1000)
Leave the userspace typedefs in place

Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_sarea.h
drivers/char/drm/radeon_state.c

index 6964d1e9bb3adb5aa4b4a1d39e5ee7b7d6d005cd..f5466966081e9446eda11a1f0b51d2990ab7cf2d 100644 (file)
 #define SAREA_DRAWABLE_CLAIMED_ENTRY    0x80000000
 
 /** SAREA drawable */
-typedef struct drm_sarea_drawable {
+struct drm_sarea_drawable {
        unsigned int stamp;
        unsigned int flags;
-} drm_sarea_drawable_t;
+};
 
 /** SAREA frame */
-typedef struct drm_sarea_frame {
+struct drm_sarea_frame {
        unsigned int x;
        unsigned int y;
        unsigned int width;
        unsigned int height;
        unsigned int fullscreen;
-} drm_sarea_frame_t;
+};
 
 /** SAREA */
-typedef struct drm_sarea {
+struct drm_sarea {
     /** first thing is always the DRM locking structure */
        struct drm_hw_lock lock;
     /** \todo Use readers/writer lock for drm_sarea::drawable_lock */
        struct drm_hw_lock drawable_lock;
-       drm_sarea_drawable_t drawableTable[SAREA_MAX_DRAWABLES];        /**< drawables */
-       drm_sarea_frame_t frame;        /**< frame */
+       struct drm_sarea_drawable drawableTable[SAREA_MAX_DRAWABLES];   /**< drawables */
+       struct drm_sarea_frame frame;   /**< frame */
        drm_context_t dummy_context;
-} drm_sarea_t;
+};
+
+#ifndef __KERNEL__
+typedef struct drm_sarea_drawable drm_sarea_drawable_t;
+typedef struct drm_sarea_frame drm_sarea_frame_t;
+typedef struct drm_sarea drm_sarea_t;
+#endif
 
 #endif                         /* _DRM_SAREA_H_ */
index 32d3344674f543fb0a1817d12f62ffd15f447fb2..3ddf86f2abf0d9ecd4ab1b47ed70fef3390fbd94 100644 (file)
@@ -1415,7 +1415,7 @@ static void radeon_cp_dispatch_swap(struct drm_device * dev)
 static void radeon_cp_dispatch_flip(struct drm_device * dev)
 {
        drm_radeon_private_t *dev_priv = dev->dev_private;
-       drm_sarea_t *sarea = (drm_sarea_t *) dev_priv->sarea->handle;
+       struct drm_sarea *sarea = (struct drm_sarea *) dev_priv->sarea->handle;
        int offset = (dev_priv->sarea_priv->pfCurrentPage == 1)
            ? dev_priv->front_offset : dev_priv->back_offset;
        RING_LOCALS;