diff options
author | Antony Clince Alex <aalex@nvidia.com> | 2018-04-26 00:29:35 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-09 21:25:54 -0400 |
commit | 7e66f2a63d4855e763fa768047dfc32f6f96b771 (patch) | |
tree | 2c460b497653a361eeff58e6e2ddb5601eeb43b1 /drivers/gpu/nvgpu/gk20a | |
parent | 50d1b0c72bfa5bf662c04db85e39c04ca3abfd67 (diff) |
gpu: nvgpu: created os-agnostic sim header.
added a os-agnostic sim.h header which could be
included in by any platform, moved out os specific
headers to nvgpu/linux.
JIRA VQRM-2368
Change-Id: I3861bfa75a6b8d2d909bc7223467fd68c208275b
Signed-off-by: Antony Clince Alex <aalex@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1702816
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/sim_gk20a.h | 45 |
3 files changed, 2 insertions, 47 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 7e1e751b..aac3380e 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -63,13 +63,13 @@ struct nvgpu_ctxsw_trace_filter; | |||
63 | #include <nvgpu/rwsem.h> | 63 | #include <nvgpu/rwsem.h> |
64 | #include <nvgpu/clk_arb.h> | 64 | #include <nvgpu/clk_arb.h> |
65 | #include <nvgpu/nvlink.h> | 65 | #include <nvgpu/nvlink.h> |
66 | #include <nvgpu/sim.h> | ||
66 | 67 | ||
67 | #include "clk_gk20a.h" | 68 | #include "clk_gk20a.h" |
68 | #include "ce2_gk20a.h" | 69 | #include "ce2_gk20a.h" |
69 | #include "fifo_gk20a.h" | 70 | #include "fifo_gk20a.h" |
70 | #include "tsg_gk20a.h" | 71 | #include "tsg_gk20a.h" |
71 | #include "gr_gk20a.h" | 72 | #include "gr_gk20a.h" |
72 | #include "sim_gk20a.h" | ||
73 | #include "pmu_gk20a.h" | 73 | #include "pmu_gk20a.h" |
74 | #include "priv_ring_gk20a.h" | 74 | #include "priv_ring_gk20a.h" |
75 | #include "therm_gk20a.h" | 75 | #include "therm_gk20a.h" |
diff --git a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c index 146b0e22..9674e2d6 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c +++ b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c | |||
@@ -25,7 +25,7 @@ | |||
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "gk20a.h" | 27 | #include "gk20a.h" |
28 | #include "sim_gk20a.h" | 28 | #include <nvgpu/sim.h> |
29 | #include "gr_ctx_gk20a.h" | 29 | #include "gr_ctx_gk20a.h" |
30 | 30 | ||
31 | #include <nvgpu/log.h> | 31 | #include <nvgpu/log.h> |
diff --git a/drivers/gpu/nvgpu/gk20a/sim_gk20a.h b/drivers/gpu/nvgpu/gk20a/sim_gk20a.h deleted file mode 100644 index e74d33d5..00000000 --- a/drivers/gpu/nvgpu/gk20a/sim_gk20a.h +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | /* | ||
2 | * drivers/video/tegra/host/gk20a/sim_gk20a.h | ||
3 | * | ||
4 | * GK20A sim support | ||
5 | * | ||
6 | * Copyright (c) 2013-2018, NVIDIA CORPORATION. All rights reserved. | ||
7 | * | ||
8 | * Permission is hereby granted, free of charge, to any person obtaining a | ||
9 | * copy of this software and associated documentation files (the "Software"), | ||
10 | * to deal in the Software without restriction, including without limitation | ||
11 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
12 | * and/or sell copies of the Software, and to permit persons to whom the | ||
13 | * Software is furnished to do so, subject to the following conditions: | ||
14 | * | ||
15 | * The above copyright notice and this permission notice shall be included in | ||
16 | * all copies or substantial portions of the Software. | ||
17 | * | ||
18 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
19 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
20 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
21 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
22 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
23 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
24 | * DEALINGS IN THE SOFTWARE. | ||
25 | */ | ||
26 | #ifndef __SIM_GK20A_H__ | ||
27 | #define __SIM_GK20A_H__ | ||
28 | |||
29 | struct gk20a; | ||
30 | |||
31 | struct sim_nvgpu { | ||
32 | struct gk20a *g; | ||
33 | u32 send_ring_put; | ||
34 | u32 recv_ring_get; | ||
35 | u32 recv_ring_put; | ||
36 | u32 sequence_base; | ||
37 | struct nvgpu_mem send_bfr; | ||
38 | struct nvgpu_mem recv_bfr; | ||
39 | struct nvgpu_mem msg_bfr; | ||
40 | void (*remove_support)(struct gk20a *); | ||
41 | int (*esc_readl)( | ||
42 | struct gk20a *g, char *path, u32 index, u32 *data); | ||
43 | }; | ||
44 | |||
45 | #endif /*__SIM_GK20A_H__*/ | ||