summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/sim_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/sim_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/common/linux/sim_gk20a.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/sim_gk20a.h b/drivers/gpu/nvgpu/common/linux/sim_gk20a.h
new file mode 100644
index 00000000..c2d975b1
--- /dev/null
+++ b/drivers/gpu/nvgpu/common/linux/sim_gk20a.h
@@ -0,0 +1,39 @@
1/*
2 * drivers/video/tegra/host/gk20a/sim_gk20a.h
3 *
4 * GK20A sim support
5 *
6 * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
7 *
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms and conditions of the GNU General Public License,
10 * version 2, as published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef __SIM_GK20A_LINUX_H__
22#define __SIM_GK20A_LINUX_H__
23
24#include "gk20a/sim_gk20a.h"
25
26struct sim_gk20a_linux {
27 struct sim_gk20a sim;
28 struct resource *reg_mem;
29 void __iomem *regs;
30 struct {
31 struct page *page;
32 void *kvaddr;
33 u64 phys;
34 } send_bfr, recv_bfr, msg_bfr;
35};
36
37int gk20a_init_sim_support(struct gk20a *g);
38
39#endif