diff options
author | Eric Anholt <eric@anholt.net> | 2007-09-02 22:06:45 -0400 |
---|---|---|
committer | Dave Airlie <airlied@optimus.(none)> | 2007-10-14 20:38:20 -0400 |
commit | c153f45f9b7e30289157bba3ff5682291df16caa (patch) | |
tree | 33f21e1ebd83ec548751f3d490afe6230ab99972 /drivers/char/drm/mga_drv.h | |
parent | b589ee5943a9610ebaea6e4e3433f2ae4d812b0b (diff) |
drm: Replace DRM_IOCTL_ARGS with (dev, data, file_priv) and remove DRM_DEVICE.
The data is now in kernel space, copied in/out as appropriate according to t
This results in DRM_COPY_{TO,FROM}_USER going away, and error paths to deal
with those failures. This also means that XFree86 4.2.0 support for i810 DR
is lost.
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/mga_drv.h')
-rw-r--r-- | drivers/char/drm/mga_drv.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/drivers/char/drm/mga_drv.h b/drivers/char/drm/mga_drv.h index 7bf59113fca6..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); |