summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-06-07 15:55:57 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-06-12 22:18:06 +0200
commitdd2757f8b557ab2030154896eac9b2285557dda6 (patch)
tree8cb47f03ff7a391ac70b749fdddf5d00db2f90d2 /include/drm
parent9b990de76ced807b2d92a601fb7f03863b632c58 (diff)
downloadop-kernel-dev-dd2757f8b557ab2030154896eac9b2285557dda6.zip
op-kernel-dev-dd2757f8b557ab2030154896eac9b2285557dda6.tar.gz
drm/i915: stop using dev->agp->base
For that to work we need to export the base address of the gtt mmio window from intel-gtt. Also replace all other uses of dev->agp by values we already have at hand. Reviewed-by: Jani Nikula <jani.nikula@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/intel-gtt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/intel-gtt.h b/include/drm/intel-gtt.h
index 923afb5..8048c00 100644
--- a/include/drm/intel-gtt.h
+++ b/include/drm/intel-gtt.h
@@ -19,6 +19,8 @@ const struct intel_gtt {
dma_addr_t scratch_page_dma;
/* for ppgtt PDE access */
u32 __iomem *gtt;
+ /* needed for ioremap in drm/i915 */
+ phys_addr_t gma_bus_addr;
} *intel_gtt_get(void);
void intel_gtt_chipset_flush(void);
OpenPOWER on IntegriCloud