From 31261ba8846c5e255a60df446a69fe3d07785440 Mon Sep 17 00:00:00 2001 From: Debarshi Dutta Date: Wed, 29 Nov 2017 13:04:13 +0530 Subject: gpu: nvgpu: files sim_gk20a.* are changed to sim.* The files sim_gk20a.c and sim_gk20a.h under common/linux/ are renamed to sim.c and sim.h as the suffix gk20a is not needed. JIRA NVGPU-386 Change-Id: I79bbb8e66c4b0cf53f2b1f98a7bed5f682106a0c Signed-off-by: Debarshi Dutta Reviewed-on: https://git-master.nvidia.com/r/1606975 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade Reviewed-by: Vijayakumar Subbu Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/sim.h | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 drivers/gpu/nvgpu/common/linux/sim.h (limited to 'drivers/gpu/nvgpu/common/linux/sim.h') diff --git a/drivers/gpu/nvgpu/common/linux/sim.h b/drivers/gpu/nvgpu/common/linux/sim.h new file mode 100644 index 00000000..a9ec0dba --- /dev/null +++ b/drivers/gpu/nvgpu/common/linux/sim.h @@ -0,0 +1,38 @@ +/* + * + * GK20A sim support + * + * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef __SIM_LINUX_H__ +#define __SIM_LINUX_H__ + +#include "gk20a/sim_gk20a.h" + +struct sim_gk20a_linux { + struct sim_gk20a sim; + struct resource *reg_mem; + void __iomem *regs; + struct { + struct page *page; + void *kvaddr; + u64 phys; + } send_bfr, recv_bfr, msg_bfr; +}; + +int gk20a_init_sim_support(struct gk20a *g); + +#endif -- cgit v1.2.2