diff options
author | Dave Airlie <airlied@linux.ie> | 2007-07-11 01:27:12 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-07-11 01:27:12 -0400 |
commit | c60ce623bd16137627009d05e311d877729f2ad6 (patch) | |
tree | 4d06337a217ccc6c21f8ad96c3b342a1e9452057 /drivers/char/drm/radeon_state.c | |
parent | c6c656b4b6ddfc964f1a43394bf86bc76c5e8119 (diff) |
drm: remove a bunch of typedefs on the userspace interface
This moves a bunch of typedefs into a !defined __KERNEL__ to keep userspace
API compatiblity, it changes all internal usages to structs/enum/unions.
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/radeon_state.c')
-rw-r--r-- | drivers/char/drm/radeon_state.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/drm/radeon_state.c b/drivers/char/drm/radeon_state.c index 5b89e471bc71..348a89e05812 100644 --- a/drivers/char/drm/radeon_state.c +++ b/drivers/char/drm/radeon_state.c | |||
@@ -421,7 +421,7 @@ static __inline__ int radeon_check_and_fixup_packet3(drm_radeon_private_t * | |||
421 | */ | 421 | */ |
422 | 422 | ||
423 | static __inline__ void radeon_emit_clip_rect(drm_radeon_private_t * dev_priv, | 423 | static __inline__ void radeon_emit_clip_rect(drm_radeon_private_t * dev_priv, |
424 | drm_clip_rect_t * box) | 424 | struct drm_clip_rect * box) |
425 | { | 425 | { |
426 | RING_LOCALS; | 426 | RING_LOCALS; |
427 | 427 | ||
@@ -852,7 +852,7 @@ static void radeon_cp_dispatch_clear(drm_device_t * dev, | |||
852 | drm_radeon_sarea_t *sarea_priv = dev_priv->sarea_priv; | 852 | drm_radeon_sarea_t *sarea_priv = dev_priv->sarea_priv; |
853 | drm_radeon_depth_clear_t *depth_clear = &dev_priv->depth_clear; | 853 | drm_radeon_depth_clear_t *depth_clear = &dev_priv->depth_clear; |
854 | int nbox = sarea_priv->nbox; | 854 | int nbox = sarea_priv->nbox; |
855 | drm_clip_rect_t *pbox = sarea_priv->boxes; | 855 | struct drm_clip_rect *pbox = sarea_priv->boxes; |
856 | unsigned int flags = clear->flags; | 856 | unsigned int flags = clear->flags; |
857 | u32 rb3d_cntl = 0, rb3d_stencilrefmask = 0; | 857 | u32 rb3d_cntl = 0, rb3d_stencilrefmask = 0; |
858 | int i; | 858 | int i; |
@@ -1340,7 +1340,7 @@ static void radeon_cp_dispatch_swap(drm_device_t * dev) | |||
1340 | drm_radeon_private_t *dev_priv = dev->dev_private; | 1340 | drm_radeon_private_t *dev_priv = dev->dev_private; |
1341 | drm_radeon_sarea_t *sarea_priv = dev_priv->sarea_priv; | 1341 | drm_radeon_sarea_t *sarea_priv = dev_priv->sarea_priv; |
1342 | int nbox = sarea_priv->nbox; | 1342 | int nbox = sarea_priv->nbox; |
1343 | drm_clip_rect_t *pbox = sarea_priv->boxes; | 1343 | struct drm_clip_rect *pbox = sarea_priv->boxes; |
1344 | int i; | 1344 | int i; |
1345 | RING_LOCALS; | 1345 | RING_LOCALS; |
1346 | DRM_DEBUG("\n"); | 1346 | DRM_DEBUG("\n"); |
@@ -2760,10 +2760,10 @@ static int radeon_emit_packet3_cliprect(drm_device_t *dev, | |||
2760 | int orig_nbox) | 2760 | int orig_nbox) |
2761 | { | 2761 | { |
2762 | drm_radeon_private_t *dev_priv = dev->dev_private; | 2762 | drm_radeon_private_t *dev_priv = dev->dev_private; |
2763 | drm_clip_rect_t box; | 2763 | struct drm_clip_rect box; |
2764 | unsigned int cmdsz; | 2764 | unsigned int cmdsz; |
2765 | int ret; | 2765 | int ret; |
2766 | drm_clip_rect_t __user *boxes = cmdbuf->boxes; | 2766 | struct drm_clip_rect __user *boxes = cmdbuf->boxes; |
2767 | int i = 0; | 2767 | int i = 0; |
2768 | RING_LOCALS; | 2768 | RING_LOCALS; |
2769 | 2769 | ||