linux/include/drm
Benjamin Herrenschmidt 41c2e75e60 drm: Make drm_local_map use a resource_size_t offset
This changes drm_local_map to use a resource_size for its "offset"
member instead of an unsigned long, thus allowing 32-bit machines
with a >32-bit physical address space to be able to store there
their register or framebuffer addresses when those are above 4G,
such as when using a PCI video card on a recent AMCC 440 SoC.

This patch isn't as "trivial" as it sounds: A few functions needed
to have some unsigned long/int changed to resource_size_t and a few
printk's had to be adjusted.

But also, because userspace isn't capable of passing such offsets,
I had to modify drm_find_matching_map() to ignore the offset passed
in for maps of type _DRM_FRAMEBUFFER or _DRM_REGISTERS.

If we ever support multiple _DRM_FRAMEBUFFER or _DRM_REGISTERS maps
for a given device, we might have to change that trick, but I don't
think that happens on any current driver.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
2009-03-13 14:23:57 +10:00
..
drm_core.h drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
drm_crtc_helper.h drm: disable encoders before re-routing them 2009-02-25 14:42:23 +10:00
drm_crtc.h drm: Use resource_size_t for drm_get_resource_{start, len} 2009-03-13 14:23:56 +10:00
drm_edid.h drm: fix EDID parser problem with positive/negative hsync/vsync 2009-03-11 12:18:48 +10:00
drm_hashtab.h drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
drm_memory_debug.h drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
drm_memory.h drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
drm_mode.h drm: sanitise drm modesetting API + remove unused hotplug 2008-12-29 17:47:25 +10:00
drm_os_linux.h drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
drm_pciids.h drm/i915: Filter pci devices based on PCI_CLASS_DISPLAY_VGA 2008-11-11 18:02:12 +10:00
drm_sarea.h drm: move to kref per-master structures. 2008-12-29 17:47:22 +10:00
drm_sman.h drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
drm.h drm: Rip out the racy, unused vblank signal code. 2009-01-28 07:50:14 -08:00
drmP.h drm: Make drm_local_map use a resource_size_t offset 2009-03-13 14:23:57 +10:00
i810_drm.h drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
i830_drm.h drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
i915_drm.h drm/i915: add fence register management to execbuf 2009-02-08 21:38:02 +10:00
Kbuild DRM: add mode setting support 2008-12-29 17:47:23 +10:00
mga_drm.h drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
r128_drm.h drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
radeon_drm.h drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
savage_drm.h drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
sis_drm.h drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
via_drm.h drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00