summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
diff options
context:
space:
mode:
authorSourab Gupta <sourabg@nvidia.com>2017-12-27 03:54:11 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-03-29 21:53:53 -0400
commit5c27ac91fdde693c6f57100dc7fc6be75cc6982a (patch)
tree58a3383ed8fbbcbee3e85f37a460625e6ea97d66 /drivers/gpu/nvgpu/gk20a/channel_gk20a.h
parentaa7ee8dac0cb29ee3244c7eef77eac8e7fc34dba (diff)
gpu: nvgpu: make fifo/ch functions called by RM Server global
The patch declares globally few channel/fifo HAL functions required for QNX code compilation (as they are being referred elsewhere in QNX code). This is required as a part of bringing in the nvgpu Channel/FIFO HAL into QNX. Jira VQRM-3058 Change-Id: Ia176535b64de981d2f7ddb20f62015a0da74fd2a Signed-off-by: Sourab Gupta <sourabg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1662411 GVS: Gerrit_Virtual_Submit Tested-by: Richard Zhao <rizhao@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
index 473248ec..f2cb2ab8 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
@@ -340,6 +340,9 @@ int gk20a_channel_get_timescale_from_timeslice(struct gk20a *g,
340 unsigned int timeslice_period, 340 unsigned int timeslice_period,
341 unsigned int *__timeslice_timeout, unsigned int *__timeslice_scale); 341 unsigned int *__timeslice_timeout, unsigned int *__timeslice_scale);
342 342
343void gk20a_wait_until_counter_is_N(
344 struct channel_gk20a *ch, nvgpu_atomic_t *counter, int wait_value,
345 struct nvgpu_cond *c, const char *caller, const char *counter_name);
343int channel_gk20a_alloc_job(struct channel_gk20a *c, 346int channel_gk20a_alloc_job(struct channel_gk20a *c,
344 struct channel_gk20a_job **job_out); 347 struct channel_gk20a_job **job_out);
345void channel_gk20a_free_job(struct channel_gk20a *c, 348void channel_gk20a_free_job(struct channel_gk20a *c,