intel-gtt: new function intel_gtt_mappable_entries
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 8 Sep 2010 19:01:04 +0000 (21:01 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Sep 2010 20:20:09 +0000 (21:20 +0100)
commit1784a5fb4f7a41b9a5ea066f7782418bfe170c04
treeb295e950380bf16dbe54893bd84df56c2b1eca86
parentbfde067bebe72293b1f909a8b35ee8d82811f8f5
intel-gtt: new function intel_gtt_mappable_entries

This implementation is stolen from drm/i915, but is equivalent to
the code sprinkled over intel-gtt.c in the various fetch_size functions.
It's not yet used anywhere, though.

Also introduce intel_gtt_init which only calls intel_gtt_stolen_entries.
Over the course of the next patches, this will grow untill it contains
the complete init sequence starting from the call to gtt_mappable_entries.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/char/agp/intel-gtt.c