summaryrefslogtreecommitdiffstats
path: root/drivers/staging/gma500/psb_drv.h
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.jf.intel.com>2011-04-19 15:27:43 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-25 17:13:48 -0700
commit6a62730c7a5278c73eaaac6c9510820c86f4a6f9 (patch)
tree76485562b34e85d8a79eba07ab08276b13824a62 /drivers/staging/gma500/psb_drv.h
parentf20ee24445b54be28cae8609c4194fb400377c63 (diff)
downloadop-kernel-dev-6a62730c7a5278c73eaaac6c9510820c86f4a6f9.zip
op-kernel-dev-6a62730c7a5278c73eaaac6c9510820c86f4a6f9.tar.gz
gma500: Add support for inserting and removing pages from the GART
There are two chunks of code we need to do this. The first one is the code to insert and remove the pages from the GART, the second is the code to build page table lists from the GEM object. Surprisingly this latter one doesn't seem to have a nice GEM helper. While we are at it we can begin dismantling the semi redundant struct pg, and finish pruning out the old now unused gtt code as well as the last bits of helper glue from the old driver base. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/gma500/psb_drv.h')
-rw-r--r--drivers/staging/gma500/psb_drv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/gma500/psb_drv.h b/drivers/staging/gma500/psb_drv.h
index aa68ae7..4c983ff 100644
--- a/drivers/staging/gma500/psb_drv.h
+++ b/drivers/staging/gma500/psb_drv.h
@@ -240,6 +240,13 @@ struct drm_psb_private {
/* GTT Memory manager */
struct psb_gtt_mm *gtt_mm;
struct page *scratch_page;
+ u32 *gtt_map;
+ uint32_t stolen_base;
+ void *vram_addr;
+ unsigned long vram_stolen_size;
+ int gtt_initialized;
+ u16 gmch_ctrl; /* Saved GTT setup */
+ u32 pge_ctl;
struct mutex gtt_mutex;
struct resource *gtt_mem; /* Our PCI resource */
OpenPOWER on IntegriCloud