diff options
Diffstat (limited to 'drivers/char/drm/mga_drv.h')
-rw-r--r-- | drivers/char/drm/mga_drv.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/drivers/char/drm/mga_drv.h b/drivers/char/drm/mga_drv.h index 49253affa475..cd94c04e31c0 100644 --- a/drivers/char/drm/mga_drv.h +++ b/drivers/char/drm/mga_drv.h | |||
@@ -148,15 +148,20 @@ typedef struct drm_mga_private { | |||
148 | unsigned int agp_size; | 148 | unsigned int agp_size; |
149 | } drm_mga_private_t; | 149 | } drm_mga_private_t; |
150 | 150 | ||
151 | extern drm_ioctl_desc_t mga_ioctls[]; | 151 | extern struct drm_ioctl_desc mga_ioctls[]; |
152 | extern int mga_max_ioctl; | 152 | extern int mga_max_ioctl; |
153 | 153 | ||
154 | /* mga_dma.c */ | 154 | /* mga_dma.c */ |
155 | extern int mga_dma_bootstrap(DRM_IOCTL_ARGS); | 155 | extern int mga_dma_bootstrap(struct drm_device *dev, void *data, |
156 | extern int mga_dma_init(DRM_IOCTL_ARGS); | 156 | struct drm_file *file_priv); |
157 | extern int mga_dma_flush(DRM_IOCTL_ARGS); | 157 | extern int mga_dma_init(struct drm_device *dev, void *data, |
158 | extern int mga_dma_reset(DRM_IOCTL_ARGS); | 158 | struct drm_file *file_priv); |
159 | extern int mga_dma_buffers(DRM_IOCTL_ARGS); | 159 | extern int mga_dma_flush(struct drm_device *dev, void *data, |
160 | struct drm_file *file_priv); | ||
161 | extern int mga_dma_reset(struct drm_device *dev, void *data, | ||
162 | struct drm_file *file_priv); | ||
163 | extern int mga_dma_buffers(struct drm_device *dev, void *data, | ||
164 | struct drm_file *file_priv); | ||
160 | extern int mga_driver_load(struct drm_device *dev, unsigned long flags); | 165 | extern int mga_driver_load(struct drm_device *dev, unsigned long flags); |
161 | extern int mga_driver_unload(struct drm_device * dev); | 166 | extern int mga_driver_unload(struct drm_device * dev); |
162 | extern void mga_driver_lastclose(struct drm_device * dev); | 167 | extern void mga_driver_lastclose(struct drm_device * dev); |
@@ -245,7 +250,7 @@ do { \ | |||
245 | dev_priv->prim.high_mark ) { \ | 250 | dev_priv->prim.high_mark ) { \ |
246 | if ( MGA_DMA_DEBUG ) \ | 251 | if ( MGA_DMA_DEBUG ) \ |
247 | DRM_INFO( "%s: wrap...\n", __FUNCTION__ ); \ | 252 | DRM_INFO( "%s: wrap...\n", __FUNCTION__ ); \ |
248 | return DRM_ERR(EBUSY); \ | 253 | return -EBUSY; \ |
249 | } \ | 254 | } \ |
250 | } \ | 255 | } \ |
251 | } while (0) | 256 | } while (0) |
@@ -256,7 +261,7 @@ do { \ | |||
256 | if ( mga_do_wait_for_idle( dev_priv ) < 0 ) { \ | 261 | if ( mga_do_wait_for_idle( dev_priv ) < 0 ) { \ |
257 | if ( MGA_DMA_DEBUG ) \ | 262 | if ( MGA_DMA_DEBUG ) \ |
258 | DRM_INFO( "%s: wrap...\n", __FUNCTION__ ); \ | 263 | DRM_INFO( "%s: wrap...\n", __FUNCTION__ ); \ |
259 | return DRM_ERR(EBUSY); \ | 264 | return -EBUSY; \ |
260 | } \ | 265 | } \ |
261 | mga_do_dma_wrap_end( dev_priv ); \ | 266 | mga_do_dma_wrap_end( dev_priv ); \ |
262 | } \ | 267 | } \ |