[PATCH 4/4] drm: Make sure the DRM offset matches the CPU

2010-05-27 Thread jcro...@codeaurora.org
From: Jordan Crouse The pgoff option in mmap() is defined as an unsigned long so the offset generated by DRM needs to fit into BITS_PER_LONG for the CPU in question. Signed-off-by: Jordan Crouse --- drivers/gpu/drm/drm_gem.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-)

[PATCH 3/4] drm: Add __arm defines to DRM

2010-05-27 Thread jcro...@codeaurora.org
From: Jordan Crouse Add __arm defines to specify behavior specific for an ARM processor. Signed-off-by: Jordan Crouse --- drivers/gpu/drm/drm_bufs.c |2 +- drivers/gpu/drm/drm_vm.c | 14 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_

[PATCH 2/4] drm: Add support for platform devices to register as DRM devices

2010-05-27 Thread jcro...@codeaurora.org
From: Jordan Crouse Allow platform devices without PCI resources to be DRM devices. Signed-off-by: Jordan Crouse --- drivers/gpu/drm/Kconfig |4 +- drivers/gpu/drm/Makefile |2 +- drivers/gpu/drm/drm_drv.c | 37 +--- drivers/gpu/drm/drm_edid

[PATCH 1/4] drm: Remove drm_resource wrappers

2010-05-27 Thread jcro...@codeaurora.org
From: Jordan Crouse Remove the drm_resource wrappers and directly use the actual PCI and/or platform functions in their place. Signed-off-by: Jordan Crouse --- drivers/gpu/drm/drm_bufs.c| 13 - drivers/gpu/drm/i915/i915_dma.c |6 +++--- drivers/gpu/d

[PATCH v2] DRM platform device support

2010-05-27 Thread jcro...@codeaurora.org
Here is the second revision implementing platform device support for DRM. I've split the original patch into three and applied most of the comments I got from the previous go-around. The first patch removes the resource wrappers from DRM and switches the drivers to use the bus level functions. Th