summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mc_gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-06-07 15:44:10 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-07 23:06:55 -0400
commitfc724baa4becf051b3e6647858a6ded90f1cee86 (patch)
tree8d70e917e1aa5b7bf2bc97e1bc03838e38156916 /drivers/gpu/nvgpu/gk20a/mc_gk20a.h
parent8efe596b01972c4efd39e709d51bd2e88a62d43f (diff)
gpu: nvgpu: Add MC HAL is_intr1_pending
Add MC HAL is_intr1_pending. At the same time introduce nvgpu_unit that is passed as parameter to is_intr1_pending. The API is passed contents of intr1 register and an engine number, and returns true if there's an interrupt pending for the engine. JIRA NVGPU-26 Change-Id: I8e6363dd78572f8e41dbab2b258036ed168b6f75 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1497870 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mc_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mc_gk20a.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mc_gk20a.h b/drivers/gpu/nvgpu/gk20a/mc_gk20a.h
index 2b4a183e..6c0d159a 100644
--- a/drivers/gpu/nvgpu/gk20a/mc_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mc_gk20a.h
@@ -31,4 +31,6 @@ void gk20a_mc_enable(struct gk20a *g, u32 units);
31void gk20a_mc_disable(struct gk20a *g, u32 units); 31void gk20a_mc_disable(struct gk20a *g, u32 units);
32void gk20a_mc_reset(struct gk20a *g, u32 units); 32void gk20a_mc_reset(struct gk20a *g, u32 units);
33u32 gk20a_mc_boot_0(struct gk20a *g, u32 *arch, u32 *impl, u32 *rev); 33u32 gk20a_mc_boot_0(struct gk20a *g, u32 *arch, u32 *impl, u32 *rev);
34bool mc_gk20a_is_intr1_pending(struct gk20a *g,
35 enum nvgpu_unit unit, u32 mc_intr_1);
34#endif 36#endif