summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/sim_gk20a.h
diff options
context:
space:
mode:
authorAntony Clince Alex <aalex@nvidia.com>2018-04-26 00:29:35 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-05-09 21:25:54 -0400
commit7e66f2a63d4855e763fa768047dfc32f6f96b771 (patch)
tree2c460b497653a361eeff58e6e2ddb5601eeb43b1 /drivers/gpu/nvgpu/gk20a/sim_gk20a.h
parent50d1b0c72bfa5bf662c04db85e39c04ca3abfd67 (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/sim_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/sim_gk20a.h45
1 files changed, 0 insertions, 45 deletions
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
29struct gk20a;
30
31struct 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__*/