diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-05-25 08:11:38 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-08 09:37:15 -0400 |
commit | 0ad7f1d9aa18d959abf3cba6ca4e532fc9246a31 (patch) | |
tree | 781bd0ef8ffa6d11d45b9f595bfcbc966e5733e7 /drivers/gpu/nvgpu/gk20a/fence_gk20a.h | |
parent | 2c9713e21c9ab93e7af45a4b9e76c1f378aab024 (diff) |
gpu: nvgpu: use nvgpu specific nvhost APIs
Remove use of linux specifix header files
<linux/nvhost.h> and <linux/nvhost_ioctl.h>
and use nvgpu specific header file <nvgpu/nvhost.h>
instead
This is needed to remove all Linux dependencies
from nvgpu driver
Replace all nvhost_*() calls by
nvgpu_nvhost_*() calls from new nvgpu library
Remove platform device pointer host1x_dev
from struct gk20a and add struct
nvgpu_nvhost_dev instead
Jira NVGPU-29
Change-Id: Ia7af70602cfc16f9ccc380752538c05a9cbb8a67
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1489726
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fence_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fence_gk20a.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h index c479f359..140f5488 100644 --- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h | |||
@@ -43,7 +43,7 @@ struct gk20a_fence { | |||
43 | struct nvgpu_cond *semaphore_wq; | 43 | struct nvgpu_cond *semaphore_wq; |
44 | 44 | ||
45 | /* Valid for fences created from syncpoints: */ | 45 | /* Valid for fences created from syncpoints: */ |
46 | struct platform_device *host1x_pdev; | 46 | struct nvgpu_nvhost_dev *nvhost_dev; |
47 | u32 syncpt_id; | 47 | u32 syncpt_id; |
48 | u32 syncpt_value; | 48 | u32 syncpt_value; |
49 | 49 | ||
@@ -62,7 +62,7 @@ int gk20a_fence_from_semaphore( | |||
62 | 62 | ||
63 | int gk20a_fence_from_syncpt( | 63 | int gk20a_fence_from_syncpt( |
64 | struct gk20a_fence *fence_out, | 64 | struct gk20a_fence *fence_out, |
65 | struct platform_device *host1x_pdev, | 65 | struct nvgpu_nvhost_dev *nvhost_dev, |
66 | u32 id, u32 value, bool wfi, | 66 | u32 id, u32 value, bool wfi, |
67 | bool need_sync_fence); | 67 | bool need_sync_fence); |
68 | 68 | ||