memory manager: Make device driver aware of different memory types.
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Wed, 31 Jan 2007 13:50:57 +0000 (14:50 +0100)
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Wed, 31 Jan 2007 13:50:57 +0000 (14:50 +0100)
commit3024f23c6551e219b0236041a8205bf1bc60ed94
tree87bd9deef4a55bf887a8c0978a5ad18412bc13e5
parent07fabc3fd8f00006e6117081f5183a826a6d2bbb
memory manager: Make device driver aware of different memory types.

Memory types are either fixed (on-card or pre-bound AGP) or not fixed
(dynamically bound) to an aperture. They also carry information about:

1) Whether they can be mapped cached.
2) Whether they are at all mappable.
3) Whether they need an ioremap to be accessible from kernel space.

In this way VRAM memory and, for example, pre-bound AGP appear
identical to the memory manager.

This also makes support for unmappable VRAM simple to implement.
linux-core/drmP.h
linux-core/drm_bo.c
linux-core/i915_buffer.c
linux-core/i915_drv.c
shared-core/drm.h
shared-core/i915_drv.h