summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/host/nvmap.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2012-10-17 11:53:47 +0300
committerSimone Willett <swillett@nvidia.com>2012-10-24 17:59:07 -0700
commitb3c51c810c4f1f968a9cbb1664e4adcee7a5aef5 (patch)
tree0ac1883203a8359e38f462889b682b78dcd91c5d /drivers/video/tegra/host/nvmap.h
parent247d147489997f49fffb9291308bb891f59e5440 (diff)
video: tegra: host: Map cmdbuf using nvmap_kmap
Use nvmap_kmap() instead of nvmap_mmap() to map individual pages from cmdbuf. Bug 1158533 Change-Id: I76320d1373b0177debec76fe171f0b0c02fe35cd Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/145504 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Ken Adams <kadams@nvidia.com> Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/host/nvmap.h')
-rw-r--r--drivers/video/tegra/host/nvmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/tegra/host/nvmap.h b/drivers/video/tegra/host/nvmap.h
index 1bf18828a7bc..31b15549c167 100644
--- a/drivers/video/tegra/host/nvmap.h
+++ b/drivers/video/tegra/host/nvmap.h
@@ -40,6 +40,9 @@ void nvhost_nvmap_unpin(struct mem_mgr *mgr,
struct mem_handle *handle, struct sg_table *sgt);
void *nvhost_nvmap_mmap(struct mem_handle *handle);
void nvhost_nvmap_munmap(struct mem_handle *handle, void *addr);
+void *nvhost_nvmap_kmap(struct mem_handle *handle, unsigned int pagenum);
+void nvhost_nvmap_kunmap(struct mem_handle *handle, unsigned int pagenum,
+ void *addr);
struct mem_handle *nvhost_nvmap_get(struct mem_mgr *mgr,
u32 id, struct nvhost_device *dev);