diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2005-09-30 04:37:36 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-09-30 04:37:36 -0400 |
commit | b3a83639895a422b25f72eec0a5d1d88c3ac4e9e (patch) | |
tree | 1cd03d53cccb01964ea57564d7be575a29b7fec2 /drivers/char/drm/i830_drv.h | |
parent | 689b9d74b1c00e1316fbb7d1e912fe1227fdb1ab (diff) |
drm: fix all sparse warning on 32-bit x86
Finally cleaned up the sparse warnings for the drm.
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/i830_drv.h')
-rw-r--r-- | drivers/char/drm/i830_drv.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/char/drm/i830_drv.h b/drivers/char/drm/i830_drv.h index 99835465c44b..bc4bd49fb0cc 100644 --- a/drivers/char/drm/i830_drv.h +++ b/drivers/char/drm/i830_drv.h | |||
@@ -120,6 +120,9 @@ typedef struct drm_i830_private { | |||
120 | 120 | ||
121 | } drm_i830_private_t; | 121 | } drm_i830_private_t; |
122 | 122 | ||
123 | extern drm_ioctl_desc_t i830_ioctls[]; | ||
124 | extern int i830_max_ioctl; | ||
125 | |||
123 | /* i830_dma.c */ | 126 | /* i830_dma.c */ |
124 | extern void i830_reclaim_buffers(drm_device_t * dev, struct file *filp); | 127 | extern void i830_reclaim_buffers(drm_device_t * dev, struct file *filp); |
125 | 128 | ||
@@ -139,15 +142,10 @@ extern int i830_driver_dma_quiescent(drm_device_t * dev); | |||
139 | extern void i830_driver_prerelease(drm_device_t * dev, DRMFILE filp); | 142 | extern void i830_driver_prerelease(drm_device_t * dev, DRMFILE filp); |
140 | extern int i830_driver_device_is_agp(drm_device_t * dev); | 143 | extern int i830_driver_device_is_agp(drm_device_t * dev); |
141 | 144 | ||
142 | #define I830_BASE(reg) ((unsigned long) \ | 145 | #define I830_READ(reg) DRM_READ32(dev_priv->mmio_map, reg) |
143 | dev_priv->mmio_map->handle) | 146 | #define I830_WRITE(reg,val) DRM_WRITE32(dev_priv->mmio_map, reg, val) |
144 | #define I830_ADDR(reg) (I830_BASE(reg) + reg) | 147 | #define I830_READ16(reg) DRM_READ16(dev_priv->mmio_map, reg) |
145 | #define I830_DEREF(reg) *(__volatile__ unsigned int *)I830_ADDR(reg) | 148 | #define I830_WRITE16(reg,val) DRM_WRITE16(dev_priv->mmio_map, reg, val) |
146 | #define I830_READ(reg) readl((volatile u32 *)I830_ADDR(reg)) | ||
147 | #define I830_WRITE(reg,val) writel(val, (volatile u32 *)I830_ADDR(reg)) | ||
148 | #define I830_DEREF16(reg) *(__volatile__ u16 *)I830_ADDR(reg) | ||
149 | #define I830_READ16(reg) I830_DEREF16(reg) | ||
150 | #define I830_WRITE16(reg,val) do { I830_DEREF16(reg) = val; } while (0) | ||
151 | 149 | ||
152 | #define I830_VERBOSE 0 | 150 | #define I830_VERBOSE 0 |
153 | 151 | ||