intel-gtt: generic (insert|remove)_entries for i830
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 11 Sep 2010 19:31:04 +0000 (21:31 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 21 Sep 2010 10:36:25 +0000 (11:36 +0100)
commit5cbecafce4ee8ab73c194911e01a77a7a07f034e
tree1434a04f60faec36094bad48db0f3938367df361
parenta87aa5cc0074fea871c8c6d2660d9b6cd7699d3d
intel-gtt: generic (insert|remove)_entries for i830

Well, not all too generic because it does not yet support dmar.
Add a new function check_flags to ensure that non-gem code does
not try to screw us over.

v2: Beautify i830_check_flags with an idea from Chris Wilson.

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