summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2017-06-02 05:21:08 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-08 09:37:17 -0400
commit5205ab23a29d6bb2d94eecae67ba344f438c5045 (patch)
tree9305a25a50771b12393e11aa5901e493993806c7 /drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
parent366386d1898af61eb425aa8b37cfb656ff898c1a (diff)
gpu: nvgpu: use nvgpu specific nvhost APIs
Remove use of linux specifix header files <linux/nvhost.h> and <linux/nvhost_t194.h> and use nvgpu specific header file <nvgpu/nvhost_t19x.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 Jira NVGPU-29 Change-Id: I32d59628ca5ab3ece80a10eb5aefa150b1da448b Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1494648 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/gv11b/fifo_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/fifo_gv11b.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
index 0dd0fc40..b018f3d9 100644
--- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
@@ -14,10 +14,6 @@
14 */ 14 */
15#include <linux/delay.h> 15#include <linux/delay.h>
16#include <linux/types.h> 16#include <linux/types.h>
17#ifdef CONFIG_TEGRA_GK20A_NVHOST
18#include <linux/nvhost.h>
19#include <linux/nvhost_t194.h>
20#endif
21 17
22#include <nvgpu/semaphore.h> 18#include <nvgpu/semaphore.h>
23#include <nvgpu/timers.h> 19#include <nvgpu/timers.h>
@@ -27,6 +23,7 @@
27#include <nvgpu/gmmu.h> 23#include <nvgpu/gmmu.h>
28#include <nvgpu/soc.h> 24#include <nvgpu/soc.h>
29#include <nvgpu/debug.h> 25#include <nvgpu/debug.h>
26#include <nvgpu/nvhost_t19x.h>
30 27
31#include "gk20a/gk20a.h" 28#include "gk20a/gk20a.h"
32#include "gk20a/fifo_gk20a.h" 29#include "gk20a/fifo_gk20a.h"
@@ -1461,7 +1458,7 @@ static void gv11b_fifo_add_syncpt_wait_cmd(struct gk20a *g,
1461 u32 id, u32 thresh, u64 gpu_va_base) 1458 u32 id, u32 thresh, u64 gpu_va_base)
1462{ 1459{
1463 u64 gpu_va = gpu_va_base + 1460 u64 gpu_va = gpu_va_base +
1464 nvhost_syncpt_unit_interface_get_byte_offset(id); 1461 nvgpu_nvhost_syncpt_unit_interface_get_byte_offset(id);
1465 1462
1466 gk20a_dbg_fn(""); 1463 gk20a_dbg_fn("");
1467 1464
@@ -1497,7 +1494,7 @@ static void gv11b_fifo_add_syncpt_incr_cmd(struct gk20a *g,
1497{ 1494{
1498 u32 off = cmd->off; 1495 u32 off = cmd->off;
1499 u64 gpu_va = gpu_va_base + 1496 u64 gpu_va = gpu_va_base +
1500 nvhost_syncpt_unit_interface_get_byte_offset(id); 1497 nvgpu_nvhost_syncpt_unit_interface_get_byte_offset(id);
1501 1498
1502 gk20a_dbg_fn(""); 1499 gk20a_dbg_fn("");
1503 1500