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/via_drm.h | |
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/via_drm.h')
-rw-r--r-- | drivers/char/drm/via_drm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/drm/via_drm.h b/drivers/char/drm/via_drm.h index e4ee97d7156f..8f53c76062e9 100644 --- a/drivers/char/drm/via_drm.h +++ b/drivers/char/drm/via_drm.h | |||
@@ -40,7 +40,7 @@ | |||
40 | #define VIA_NR_XVMC_LOCKS 5 | 40 | #define VIA_NR_XVMC_LOCKS 5 |
41 | #define VIA_MAX_CACHELINE_SIZE 64 | 41 | #define VIA_MAX_CACHELINE_SIZE 64 |
42 | #define XVMCLOCKPTR(saPriv,lockNo) \ | 42 | #define XVMCLOCKPTR(saPriv,lockNo) \ |
43 | ((volatile drm_hw_lock_t *)(((((unsigned long) (saPriv)->XvMCLockArea) + \ | 43 | ((volatile struct drm_hw_lock *)(((((unsigned long) (saPriv)->XvMCLockArea) + \ |
44 | (VIA_MAX_CACHELINE_SIZE - 1)) & \ | 44 | (VIA_MAX_CACHELINE_SIZE - 1)) & \ |
45 | ~(VIA_MAX_CACHELINE_SIZE - 1)) + \ | 45 | ~(VIA_MAX_CACHELINE_SIZE - 1)) + \ |
46 | VIA_MAX_CACHELINE_SIZE*(lockNo))) | 46 | VIA_MAX_CACHELINE_SIZE*(lockNo))) |
@@ -182,7 +182,7 @@ typedef struct _drm_via_tex_region { | |||
182 | typedef struct _drm_via_sarea { | 182 | typedef struct _drm_via_sarea { |
183 | unsigned int dirty; | 183 | unsigned int dirty; |
184 | unsigned int nbox; | 184 | unsigned int nbox; |
185 | drm_clip_rect_t boxes[VIA_NR_SAREA_CLIPRECTS]; | 185 | struct drm_clip_rect boxes[VIA_NR_SAREA_CLIPRECTS]; |
186 | drm_via_tex_region_t texList[VIA_NR_TEX_REGIONS + 1]; | 186 | drm_via_tex_region_t texList[VIA_NR_TEX_REGIONS + 1]; |
187 | int texAge; /* last time texture was uploaded */ | 187 | int texAge; /* last time texture was uploaded */ |
188 | int ctxOwner; /* last context to upload state */ | 188 | int ctxOwner; /* last context to upload state */ |