Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gma500: Rename the ioctls to avoid clashing with the legacy drivers

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Alan Cox and committed by
Dave Airlie
770179d5 61bedf70

+20 -20
+2 -2
drivers/gpu/drm/gma500/gem.c
··· 274 274 { 275 275 struct drm_psb_gem_create *args = data; 276 276 int ret; 277 - if (args->flags & PSB_GEM_CREATE_STOLEN) { 277 + if (args->flags & GMA_GEM_CREATE_STOLEN) { 278 278 ret = psb_gem_create_stolen(file, dev, args->size, 279 279 &args->handle); 280 280 if (ret == 0) 281 281 return 0; 282 282 /* Fall throguh */ 283 - args->flags &= ~PSB_GEM_CREATE_STOLEN; 283 + args->flags &= ~GMA_GEM_CREATE_STOLEN; 284 284 } 285 285 return psb_gem_create(file, dev, args->size, &args->handle); 286 286 }
+10 -10
drivers/gpu/drm/gma500/psb_drm.h
··· 63 63 __u64 size; 64 64 __u32 handle; 65 65 __u32 flags; 66 - #define PSB_GEM_CREATE_STOLEN 1 /* Stolen memory can be used */ 66 + #define GMA_GEM_CREATE_STOLEN 1 /* Stolen memory can be used */ 67 67 }; 68 68 69 69 struct drm_psb_gem_mmap { ··· 79 79 80 80 /* Controlling the kernel modesetting buffers */ 81 81 82 - #define DRM_PSB_GEM_CREATE 0x00 /* Create a GEM object */ 83 - #define DRM_PSB_GEM_MMAP 0x01 /* Map GEM memory */ 84 - #define DRM_PSB_STOLEN_MEMORY 0x02 /* Report stolen memory */ 85 - #define DRM_PSB_2D_OP 0x03 /* Will be merged later */ 86 - #define DRM_PSB_GAMMA 0x04 /* Set gamma table */ 87 - #define DRM_PSB_ADB 0x05 /* Get backlight */ 88 - #define DRM_PSB_DPST_BL 0x06 /* Set backlight */ 89 - #define DRM_PSB_GET_PIPE_FROM_CRTC_ID 0x1 /* CRTC to physical pipe# */ 90 - #define DRM_PSB_MODE_OPERATION 0x07 /* Mode validation/DC set */ 82 + #define DRM_GMA_GEM_CREATE 0x00 /* Create a GEM object */ 83 + #define DRM_GMA_GEM_MMAP 0x01 /* Map GEM memory */ 84 + #define DRM_GMA_STOLEN_MEMORY 0x02 /* Report stolen memory */ 85 + #define DRM_GMA_2D_OP 0x03 /* Will be merged later */ 86 + #define DRM_GMA_GAMMA 0x04 /* Set gamma table */ 87 + #define DRM_GMA_ADB 0x05 /* Get backlight */ 88 + #define DRM_GMA_DPST_BL 0x06 /* Set backlight */ 89 + #define DRM_GMA_GET_PIPE_FROM_CRTC_ID 0x1 /* CRTC to physical pipe# */ 90 + #define DRM_GMA_MODE_OPERATION 0x07 /* Mode validation/DC set */ 91 91 #define PSB_MODE_OPERATION_MODE_VALID 0x01 92 92 93 93
+8 -8
drivers/gpu/drm/gma500/psb_drv.c
··· 81 81 */ 82 82 83 83 #define DRM_IOCTL_PSB_ADB \ 84 - DRM_IOWR(DRM_PSB_ADB + DRM_COMMAND_BASE, uint32_t) 84 + DRM_IOWR(DRM_GMA_ADB + DRM_COMMAND_BASE, uint32_t) 85 85 #define DRM_IOCTL_PSB_MODE_OPERATION \ 86 - DRM_IOWR(DRM_PSB_MODE_OPERATION + DRM_COMMAND_BASE, \ 86 + DRM_IOWR(DRM_GMA_MODE_OPERATION + DRM_COMMAND_BASE, \ 87 87 struct drm_psb_mode_operation_arg) 88 88 #define DRM_IOCTL_PSB_STOLEN_MEMORY \ 89 - DRM_IOWR(DRM_PSB_STOLEN_MEMORY + DRM_COMMAND_BASE, \ 89 + DRM_IOWR(DRM_GMA_STOLEN_MEMORY + DRM_COMMAND_BASE, \ 90 90 struct drm_psb_stolen_memory_arg) 91 91 #define DRM_IOCTL_PSB_GAMMA \ 92 - DRM_IOWR(DRM_PSB_GAMMA + DRM_COMMAND_BASE, \ 92 + DRM_IOWR(DRM_GMA_GAMMA + DRM_COMMAND_BASE, \ 93 93 struct drm_psb_dpst_lut_arg) 94 94 #define DRM_IOCTL_PSB_DPST_BL \ 95 - DRM_IOWR(DRM_PSB_DPST_BL + DRM_COMMAND_BASE, \ 95 + DRM_IOWR(DRM_GMA_DPST_BL + DRM_COMMAND_BASE, \ 96 96 uint32_t) 97 97 #define DRM_IOCTL_PSB_GET_PIPE_FROM_CRTC_ID \ 98 - DRM_IOWR(DRM_PSB_GET_PIPE_FROM_CRTC_ID + DRM_COMMAND_BASE, \ 98 + DRM_IOWR(DRM_GMA_GET_PIPE_FROM_CRTC_ID + DRM_COMMAND_BASE, \ 99 99 struct drm_psb_get_pipe_from_crtc_id_arg) 100 100 #define DRM_IOCTL_PSB_GEM_CREATE \ 101 - DRM_IOWR(DRM_PSB_GEM_CREATE + DRM_COMMAND_BASE, \ 101 + DRM_IOWR(DRM_GMA_GEM_CREATE + DRM_COMMAND_BASE, \ 102 102 struct drm_psb_gem_create) 103 103 #define DRM_IOCTL_PSB_GEM_MMAP \ 104 - DRM_IOWR(DRM_PSB_GEM_MMAP + DRM_COMMAND_BASE, \ 104 + DRM_IOWR(DRM_GMA_GEM_MMAP + DRM_COMMAND_BASE, \ 105 105 struct drm_psb_gem_mmap) 106 106 107 107 static int psb_adb_ioctl(struct drm_device *dev, void *data,