diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 05:01:00 -0500 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 05:35:06 -0500 |
commit | 7a81883a0d70c3a43ad2841ac235f6dc344c60fb (patch) | |
tree | 92923d2efccf90d1961071fa9acde59178a0d688 /drivers/gpu/nvgpu/gp10b/mc_gp10b.h | |
parent | 505b442551a2e27aa3bc9e608c5a2bc9fccecbc4 (diff) | |
parent | 2aa3c85f8e82b3c07c39e677663abd3687c1822a (diff) |
Merge remote-tracking branch 'remotes/origin/dev/merge-nvgpu-t18x-into-nvgpu' into dev-kernel
Merge T186 - gp10b/gp106 code into common nvgpu repo
Bug 200266498
Change-Id: Ibf100ee38010cbed85c149b69b99147256f9a005
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/mc_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/mc_gp10b.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/mc_gp10b.h b/drivers/gpu/nvgpu/gp10b/mc_gp10b.h new file mode 100644 index 00000000..b2ec4be4 --- /dev/null +++ b/drivers/gpu/nvgpu/gp10b/mc_gp10b.h | |||
@@ -0,0 +1,31 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify it | ||
5 | * under the terms and conditions of the GNU General Public License, | ||
6 | * version 2, as published by the Free Software Foundation. | ||
7 | * | ||
8 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
11 | * more details. | ||
12 | */ | ||
13 | |||
14 | #ifndef MC_GP20B_H | ||
15 | #define MC_GP20B_H | ||
16 | struct gk20a; | ||
17 | |||
18 | enum MC_INTERRUPT_REGLIST { | ||
19 | NVGPU_MC_INTR_STALLING = 0, | ||
20 | NVGPU_MC_INTR_NONSTALLING, | ||
21 | }; | ||
22 | |||
23 | void gp10b_init_mc(struct gpu_ops *gops); | ||
24 | void mc_gp10b_intr_enable(struct gk20a *g); | ||
25 | void mc_gp10b_intr_unit_config(struct gk20a *g, bool enable, | ||
26 | bool is_stalling, u32 mask); | ||
27 | irqreturn_t mc_gp10b_isr_stall(struct gk20a *g); | ||
28 | irqreturn_t mc_gp10b_isr_nonstall(struct gk20a *g); | ||
29 | irqreturn_t mc_gp10b_intr_thread_stall(struct gk20a *g); | ||
30 | irqreturn_t mc_gp10b_intr_thread_nonstall(struct gk20a *g); | ||
31 | #endif | ||