summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/pmuif/nvgpu_gpmu_cmdif.h
diff options
context:
space:
mode:
authorMahantesh Kumbar <mkumbar@nvidia.com>2017-02-06 06:19:24 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-02-10 12:43:46 -0500
commit3885fe099af0bda910ac8ee64f2cd1a5bbea3ab0 (patch)
tree602ead38e7631ce81db7e600802fdac0aba49974 /drivers/gpu/nvgpu/pmuif/nvgpu_gpmu_cmdif.h
parent8da422ac577338ecb2d4114e1d8d5f36cf4cab78 (diff)
gpu: nvgpu: move pmuif/* to drivers/gpu/nvgpu/include/nvgpu
Moved pmuif/* headers to drivers/gpu/nvgpu/include/nvgpu folder to support cross platform feature implementation. Made changes to files which accessed “include pmuif/*” to reflect pmuif/* movement changes. Deleted includes of gk20a.h/pmu_gk20a.h from pmuif/*.h files. Jira NVGPU-19 Change-Id: Iace4e107c24bdaff08a407eae3b147959173e485 Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: http://git-master/r/1299823 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/pmuif/nvgpu_gpmu_cmdif.h')
-rw-r--r--drivers/gpu/nvgpu/pmuif/nvgpu_gpmu_cmdif.h86
1 files changed, 0 insertions, 86 deletions
diff --git a/drivers/gpu/nvgpu/pmuif/nvgpu_gpmu_cmdif.h b/drivers/gpu/nvgpu/pmuif/nvgpu_gpmu_cmdif.h
deleted file mode 100644
index 91175c69..00000000
--- a/drivers/gpu/nvgpu/pmuif/nvgpu_gpmu_cmdif.h
+++ /dev/null
@@ -1,86 +0,0 @@
1/*
2 * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 */
13#ifndef _NVGPUGPMUCMDIF_H_
14#define _NVGPUGPMUCMDIF_H_
15
16#include <nvgpu/flcnif_cmn.h>
17#include "gpmuif_cmn.h"
18#include "gpmuif_pmu.h"
19#include "gpmuif_ap.h"
20#include "gpmuif_pg.h"
21#include "gpmuif_perfmon.h"
22#include "gpmuif_acr.h"
23#include "gpmuifboardobj.h"
24#include "gpmuifclk.h"
25#include "gpmuifperf.h"
26#include "gpmuifpmgr.h"
27#include "gpmuifvolt.h"
28#include "gpmuiftherm.h"
29
30struct pmu_cmd {
31 struct pmu_hdr hdr;
32 union {
33 struct pmu_perfmon_cmd perfmon;
34 struct pmu_pg_cmd pg;
35 struct pmu_zbc_cmd zbc;
36 struct pmu_acr_cmd acr;
37 struct nv_pmu_boardobj_cmd boardobj;
38 struct nv_pmu_perf_cmd perf;
39 struct nv_pmu_volt_cmd volt;
40 struct nv_pmu_clk_cmd clk;
41 struct nv_pmu_pmgr_cmd pmgr;
42 struct nv_pmu_therm_cmd therm;
43 } cmd;
44};
45
46struct pmu_msg {
47 struct pmu_hdr hdr;
48 union {
49 struct pmu_init_msg init;
50 struct pmu_perfmon_msg perfmon;
51 struct pmu_pg_msg pg;
52 struct pmu_rc_msg rc;
53 struct pmu_acr_msg acr;
54 struct nv_pmu_boardobj_msg boardobj;
55 struct nv_pmu_perf_msg perf;
56 struct nv_pmu_volt_msg volt;
57 struct nv_pmu_clk_msg clk;
58 struct nv_pmu_pmgr_msg pmgr;
59 struct nv_pmu_therm_msg therm;
60 } msg;
61};
62
63#define PMU_UNIT_REWIND (0x00)
64#define PMU_UNIT_PG (0x03)
65#define PMU_UNIT_INIT (0x07)
66#define PMU_UNIT_ACR (0x0A)
67#define PMU_UNIT_PERFMON_T18X (0x11)
68#define PMU_UNIT_PERFMON (0x12)
69#define PMU_UNIT_PERF (0x13)
70#define PMU_UNIT_RC (0x1F)
71#define PMU_UNIT_FECS_MEM_OVERRIDE (0x1E)
72#define PMU_UNIT_CLK (0x0D)
73#define PMU_UNIT_THERM (0x14)
74#define PMU_UNIT_PMGR (0x18)
75#define PMU_UNIT_VOLT (0x0E)
76
77#define PMU_UNIT_END (0x23)
78
79#define PMU_UNIT_TEST_START (0xFE)
80#define PMU_UNIT_END_SIM (0xFF)
81#define PMU_UNIT_TEST_END (0xFF)
82
83#define PMU_UNIT_ID_IS_VALID(id) \
84 (((id) < PMU_UNIT_END) || ((id) >= PMU_UNIT_TEST_START))
85
86#endif /* _NVGPUGPMUCMDIF_H_*/