59 static int compat_mga_init(
struct file *
file,
unsigned int cmd,
95 &init->texture_offset[
i]);
110 static int compat_mga_getparam(
struct file *file,
unsigned int cmd,
139 static int compat_mga_dma_bootstrap(
struct file *file,
unsigned int cmd,
147 sizeof(dma_bootstrap32)))
153 &dma_bootstrap->texture_handle)
155 &dma_bootstrap->texture_size)
157 &dma_bootstrap->primary_size)
159 &dma_bootstrap->secondary_bin_count)
161 &dma_bootstrap->secondary_bin_size)
167 (
unsigned long)dma_bootstrap);
172 &dma_bootstrap->texture_handle)
174 &dma_bootstrap->texture_size)
176 &dma_bootstrap->primary_size)
178 &dma_bootstrap->secondary_bin_count)
180 &dma_bootstrap->secondary_bin_size)
186 sizeof(dma_bootstrap32)))
209 unsigned int nr = DRM_IOCTL_NR(cmd);
210 drm_ioctl_compat_t *
fn =
NULL;
220 ret = (*fn) (filp,
cmd,
arg);