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>
This commit is contained in:
Antony Clince Alex
2018-04-26 09:59:35 +05:30
committed by mobile promotions
parent 50d1b0c72b
commit 7e66f2a63d
11 changed files with 31 additions and 35 deletions

View File

@@ -25,11 +25,11 @@
#include <nvgpu/dma.h>
#include <nvgpu/soc.h>
#include <nvgpu/hw_sim.h>
#include <nvgpu/sim.h>
#include "gk20a/gk20a.h"
#include "platform_gk20a.h"
#include "os_linux.h"
#include "module.h"
#include "sim.h" /* will be removed in next patch */
void sim_writel(struct sim_nvgpu *sim, u32 r, u32 v)
{
@@ -51,10 +51,9 @@ void nvgpu_remove_sim_support_linux(struct gk20a *g)
{
struct sim_nvgpu_linux *sim_linux;
if (!g->sim) {
nvgpu_warn(g, "sim not allocated or not in sim_mode");
if (!g->sim)
return;
}
sim_linux = container_of(g->sim, struct sim_nvgpu_linux, sim);
if (sim_linux->regs) {
sim_writel(g->sim, sim_config_r(), sim_config_mode_disabled_v());