diff options
Diffstat (limited to 'drivers/gpu/nvgpu/pmuif/nvgpu_gpmu_cmdif.h')
-rw-r--r-- | drivers/gpu/nvgpu/pmuif/nvgpu_gpmu_cmdif.h | 86 |
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 | |||
30 | struct 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 | |||
46 | struct 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_*/ | ||