drm/prime: introduce sg->pages/addr arrays helper
authorDave Airlie <airlied@redhat.com>
Fri, 18 May 2012 14:40:33 +0000 (15:40 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 23 May 2012 09:45:57 +0000 (10:45 +0100)
commit51ab7ba2673758561074184795bba5bac780a038
tree698c399d22524b5ec018af82c89d6c5c8ff422a3
parent4d93914ae3db4a897ead4b1e33eca7cdfff4c6f7
drm/prime: introduce sg->pages/addr arrays helper

the ttm drivers need this currently, in order to get fault handling
working and efficient.

It also allows addrs to be NULL for devices like udl.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_prime.c
include/drm/drmP.h