summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_cp.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt2009-02-02 06:55:46 +0100
committerDave Airlie2009-03-13 05:23:56 +0100
commitf77d390c9779c496aa5b99ec832996fb76bb1d13 (patch)
tree3e3cccc4ac9416457a944d13b31ef942432717f2 /drivers/gpu/drm/radeon/radeon_cp.c
parentdrm: Use resource_size_t for drm_get_resource_{start, len} (diff)
downloadkernel-qcow2-linux-f77d390c9779c496aa5b99ec832996fb76bb1d13.tar.gz
kernel-qcow2-linux-f77d390c9779c496aa5b99ec832996fb76bb1d13.tar.xz
kernel-qcow2-linux-f77d390c9779c496aa5b99ec832996fb76bb1d13.zip
drm: Split drm_map and drm_local_map
Once upon a time, the DRM made the distinction between the drm_map data structure exchanged with user space and the drm_local_map used in the kernel. For some reasons, while the BSD port still has that "feature", the linux part abused drm_map for kernel internal usage as the local map only existed as a typedef of the struct drm_map. This patch fixes it by declaring struct drm_local_map separately (though its content is currently identical to the userspace variant), and changing the kernel code to only use that, except when it's a user<->kernel interface (ie. ioctl). This allows subsequent changes to the in-kernel format I've also replaced the use of drm_local_map_t with struct drm_local_map in a couple of places. Mostly by accident but they are the same (the former is a typedef of the later) and I have some remote plans and half finished patch to completely kill the drm_local_map_t typedef so I left those bits in. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Eric Anholt <eric@anholt.net> Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_cp.c')
0 files changed, 0 insertions, 0 deletions