diff options
author | Alan Cox <alan@linux.intel.com> | 2011-11-16 17:39:18 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-12-06 04:43:13 -0500 |
commit | 770179d5e35c191e2c760d37abd5572ccdf6a002 (patch) | |
tree | 04f10728d5ee4ede65b7168d836f17dc23523bc5 | |
parent | 61bedf702c81c47edf3bb0dec50e2de7c4537255 (diff) |
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>
-rw-r--r-- | drivers/gpu/drm/gma500/gem.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/psb_drm.h | 20 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/psb_drv.c | 16 |
3 files changed, 20 insertions, 20 deletions
diff --git a/drivers/gpu/drm/gma500/gem.c b/drivers/gpu/drm/gma500/gem.c index 65fdd6b8ab16..d74367993989 100644 --- a/drivers/gpu/drm/gma500/gem.c +++ b/drivers/gpu/drm/gma500/gem.c | |||
@@ -274,13 +274,13 @@ int psb_gem_create_ioctl(struct drm_device *dev, void *data, | |||
274 | { | 274 | { |
275 | struct drm_psb_gem_create *args = data; | 275 | struct drm_psb_gem_create *args = data; |
276 | int ret; | 276 | int ret; |
277 | if (args->flags & PSB_GEM_CREATE_STOLEN) { | 277 | if (args->flags & GMA_GEM_CREATE_STOLEN) { |
278 | ret = psb_gem_create_stolen(file, dev, args->size, | 278 | ret = psb_gem_create_stolen(file, dev, args->size, |
279 | &args->handle); | 279 | &args->handle); |
280 | if (ret == 0) | 280 | if (ret == 0) |
281 | return 0; | 281 | return 0; |
282 | /* Fall throguh */ | 282 | /* Fall throguh */ |
283 | args->flags &= ~PSB_GEM_CREATE_STOLEN; | 283 | args->flags &= ~GMA_GEM_CREATE_STOLEN; |
284 | } | 284 | } |
285 | return psb_gem_create(file, dev, args->size, &args->handle); | 285 | return psb_gem_create(file, dev, args->size, &args->handle); |
286 | } | 286 | } |
diff --git a/drivers/gpu/drm/gma500/psb_drm.h b/drivers/gpu/drm/gma500/psb_drm.h index 72eeb7a9d4be..6ded3439614d 100644 --- a/drivers/gpu/drm/gma500/psb_drm.h +++ b/drivers/gpu/drm/gma500/psb_drm.h | |||
@@ -63,7 +63,7 @@ struct drm_psb_gem_create { | |||
63 | __u64 size; | 63 | __u64 size; |
64 | __u32 handle; | 64 | __u32 handle; |
65 | __u32 flags; | 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 | struct drm_psb_gem_mmap { | 69 | struct drm_psb_gem_mmap { |
@@ -79,15 +79,15 @@ struct drm_psb_gem_mmap { | |||
79 | 79 | ||
80 | /* Controlling the kernel modesetting buffers */ | 80 | /* Controlling the kernel modesetting buffers */ |
81 | 81 | ||
82 | #define DRM_PSB_GEM_CREATE 0x00 /* Create a GEM object */ | 82 | #define DRM_GMA_GEM_CREATE 0x00 /* Create a GEM object */ |
83 | #define DRM_PSB_GEM_MMAP 0x01 /* Map GEM memory */ | 83 | #define DRM_GMA_GEM_MMAP 0x01 /* Map GEM memory */ |
84 | #define DRM_PSB_STOLEN_MEMORY 0x02 /* Report stolen memory */ | 84 | #define DRM_GMA_STOLEN_MEMORY 0x02 /* Report stolen memory */ |
85 | #define DRM_PSB_2D_OP 0x03 /* Will be merged later */ | 85 | #define DRM_GMA_2D_OP 0x03 /* Will be merged later */ |
86 | #define DRM_PSB_GAMMA 0x04 /* Set gamma table */ | 86 | #define DRM_GMA_GAMMA 0x04 /* Set gamma table */ |
87 | #define DRM_PSB_ADB 0x05 /* Get backlight */ | 87 | #define DRM_GMA_ADB 0x05 /* Get backlight */ |
88 | #define DRM_PSB_DPST_BL 0x06 /* Set backlight */ | 88 | #define DRM_GMA_DPST_BL 0x06 /* Set backlight */ |
89 | #define DRM_PSB_GET_PIPE_FROM_CRTC_ID 0x1 /* CRTC to physical pipe# */ | 89 | #define DRM_GMA_GET_PIPE_FROM_CRTC_ID 0x1 /* CRTC to physical pipe# */ |
90 | #define DRM_PSB_MODE_OPERATION 0x07 /* Mode validation/DC set */ | 90 | #define DRM_GMA_MODE_OPERATION 0x07 /* Mode validation/DC set */ |
91 | #define PSB_MODE_OPERATION_MODE_VALID 0x01 | 91 | #define PSB_MODE_OPERATION_MODE_VALID 0x01 |
92 | 92 | ||
93 | 93 | ||
diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c index c65a8725b154..062df075a717 100644 --- a/drivers/gpu/drm/gma500/psb_drv.c +++ b/drivers/gpu/drm/gma500/psb_drv.c | |||
@@ -81,27 +81,27 @@ MODULE_DEVICE_TABLE(pci, pciidlist); | |||
81 | */ | 81 | */ |
82 | 82 | ||
83 | #define DRM_IOCTL_PSB_ADB \ | 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 | #define DRM_IOCTL_PSB_MODE_OPERATION \ | 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 | struct drm_psb_mode_operation_arg) | 87 | struct drm_psb_mode_operation_arg) |
88 | #define DRM_IOCTL_PSB_STOLEN_MEMORY \ | 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 | struct drm_psb_stolen_memory_arg) | 90 | struct drm_psb_stolen_memory_arg) |
91 | #define DRM_IOCTL_PSB_GAMMA \ | 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 | struct drm_psb_dpst_lut_arg) | 93 | struct drm_psb_dpst_lut_arg) |
94 | #define DRM_IOCTL_PSB_DPST_BL \ | 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 | uint32_t) | 96 | uint32_t) |
97 | #define DRM_IOCTL_PSB_GET_PIPE_FROM_CRTC_ID \ | 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 | struct drm_psb_get_pipe_from_crtc_id_arg) | 99 | struct drm_psb_get_pipe_from_crtc_id_arg) |
100 | #define DRM_IOCTL_PSB_GEM_CREATE \ | 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 | struct drm_psb_gem_create) | 102 | struct drm_psb_gem_create) |
103 | #define DRM_IOCTL_PSB_GEM_MMAP \ | 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 | struct drm_psb_gem_mmap) | 105 | struct drm_psb_gem_mmap) |
106 | 106 | ||
107 | static int psb_adb_ioctl(struct drm_device *dev, void *data, | 107 | static int psb_adb_ioctl(struct drm_device *dev, void *data, |