drm/ttm: isolate dma data from ttm_tt V4
authorJerome Glisse <jglisse@redhat.com>
Wed, 9 Nov 2011 22:15:26 +0000 (17:15 -0500)
committerDave Airlie <airlied@redhat.com>
Tue, 6 Dec 2011 10:40:02 +0000 (10:40 +0000)
commit8e7e70522d760c4ccd4cd370ebfa0ba69e006c6e
treea2b0f931e513f3aeba174b974bd5e869685fe288
parent3230cfc34fca9d17c1628cf0e4ac25199592a69a
drm/ttm: isolate dma data from ttm_tt V4

Move dma data to a superset ttm_dma_tt structure which herit
from ttm_tt. This allow driver that don't use dma functionalities
to not have to waste memory for it.

V2 Rebase on top of no memory account changes (where/when is my
   delorean when i need it ?)
V3 Make sure page list is initialized empty
V4 typo/syntax fixes

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_sgdma.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/ttm/ttm_page_alloc.c
drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
drivers/gpu/drm/ttm/ttm_tt.c
drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
include/drm/ttm/ttm_bo_driver.h
include/drm/ttm/ttm_page_alloc.h