aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/gma500/mmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/gma500/mmu.c')
-rw-r--r--drivers/gpu/drm/gma500/mmu.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/gpu/drm/gma500/mmu.c b/drivers/gpu/drm/gma500/mmu.c
index e80ee82f6caf..49bac41beefb 100644
--- a/drivers/gpu/drm/gma500/mmu.c
+++ b/drivers/gpu/drm/gma500/mmu.c
@@ -270,7 +270,7 @@ out_err1:
270 return NULL; 270 return NULL;
271} 271}
272 272
273void psb_mmu_free_pt(struct psb_mmu_pt *pt) 273static void psb_mmu_free_pt(struct psb_mmu_pt *pt)
274{ 274{
275 __free_page(pt->p); 275 __free_page(pt->p);
276 kfree(pt); 276 kfree(pt);
@@ -351,7 +351,7 @@ static struct psb_mmu_pt *psb_mmu_alloc_pt(struct psb_mmu_pd *pd)
351 return pt; 351 return pt;
352} 352}
353 353
354struct psb_mmu_pt *psb_mmu_pt_alloc_map_lock(struct psb_mmu_pd *pd, 354static struct psb_mmu_pt *psb_mmu_pt_alloc_map_lock(struct psb_mmu_pd *pd,
355 unsigned long addr) 355 unsigned long addr)
356{ 356{
357 uint32_t index = psb_mmu_pd_index(addr); 357 uint32_t index = psb_mmu_pd_index(addr);
@@ -488,15 +488,6 @@ struct psb_mmu_pd *psb_mmu_get_default_pd(struct psb_mmu_driver *driver)
488 return pd; 488 return pd;
489} 489}
490 490
491/* Returns the physical address of the PD shared by sgx/msvdx */
492uint32_t psb_get_default_pd_addr(struct psb_mmu_driver *driver)
493{
494 struct psb_mmu_pd *pd;
495
496 pd = psb_mmu_get_default_pd(driver);
497 return page_to_pfn(pd->p) << PAGE_SHIFT;
498}
499
500void psb_mmu_driver_takedown(struct psb_mmu_driver *driver) 491void psb_mmu_driver_takedown(struct psb_mmu_driver *driver)
501{ 492{
502 psb_mmu_free_pagedir(driver->default_pd); 493 psb_mmu_free_pagedir(driver->default_pd);