summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorSrirangan <smadhavan@nvidia.com>2018-08-28 04:51:33 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-04 19:16:45 -0400
commit471be337187477e57f8ab08d04d22f19700c3ade (patch)
tree89065fc8c7b502c1c1744485a95fe2b58f6d9fbb /drivers/gpu/nvgpu/include
parentf18f06f1043cd049d76520f2230ec40e3f3c1210 (diff)
gpu: nvgpu: pmuif: Fix MISRA Rule 21.2 violations
MISRA rule 21.2 doesn't allow the use of macro names which start with an underscore. These leading underscores are to be removed from the macro names. This patch will fix such violations caused by include guards in pmuif by renaming them to follow the convention, 'NVGPU_PARENT-DIR_HEADER_H'. JIRA NVGPU-1028 Change-Id: I19471ed8d8f7b278f497df74f760cdb1edc43ed0 Signed-off-by: Srirangan <smadhavan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1808133 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: Adeel Raza <araza@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmu_super_surf_if.h6
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_acr.h6
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_ap.h8
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_cmn.h8
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_perfmon.h8
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_pg.h6
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_pg_rppg.h8
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_pmu.h6
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifbios.h8
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifboardobj.h6
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifclk.h6
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifperf.h8
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifperfvfe.h6
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifpmgr.h8
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifseq.h8
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuiftherm.h8
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifthermsensor.h8
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifvolt.h6
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pmuif/nvgpu_gpmu_cmdif.h8
19 files changed, 68 insertions, 68 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmu_super_surf_if.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmu_super_surf_if.h
index 342ca199..c9a2750f 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmu_super_surf_if.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmu_super_surf_if.h
@@ -19,8 +19,8 @@
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21 */ 21 */
22#ifndef __GPMU_SUPER_SURF_IF_H__ 22#ifndef NVGPU_PMUIF_GPMU_SUPER_SURF_IF_H
23#define __GPMU_SUPER_SURF_IF_H__ 23#define NVGPU_PMUIF_GPMU_SUPER_SURF_IF_H
24 24
25struct nv_pmu_super_surface_hdr { 25struct nv_pmu_super_surface_hdr {
26 u32 memberMask; 26 u32 memberMask;
@@ -75,4 +75,4 @@ struct nv_pmu_super_surface {
75 } therm; 75 } therm;
76}; 76};
77 77
78#endif /* __GPMU_SUPER_SURF_IF_H__ */ 78#endif /* NVGPU_PMUIF_GPMU_SUPER_SURF_IF_H */
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_acr.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_acr.h
index c1a4b360..c305589c 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_acr.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_acr.h
@@ -19,8 +19,8 @@
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21 */ 21 */
22#ifndef _GPMUIFACR_H_ 22#ifndef NVGPU_PMUIF_GPMUIF_ACR_H
23#define _GPMUIFACR_H_ 23#define NVGPU_PMUIF_GPMUIF_ACR_H
24 24
25/* ACR Commands/Message structures */ 25/* ACR Commands/Message structures */
26 26
@@ -156,4 +156,4 @@ struct nv_pmu_rpc_struct_acr_bootstrap_gr_falcons {
156 u32 scratch[1]; 156 u32 scratch[1];
157}; 157};
158 158
159#endif /* _GPMUIFACR_H_ */ 159#endif /* NVGPU_PMUIF_GPMUIF_ACR_H */
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_ap.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_ap.h
index e4f6d5c4..776fce8e 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_ap.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_ap.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -19,8 +19,8 @@
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21 */ 21 */
22#ifndef _GPMUIFAP_H_ 22#ifndef NVGPU_PMUIF_GPMUIF_AP_H
23#define _GPMUIFAP_H_ 23#define NVGPU_PMUIF_GPMUIF_AP_H
24 24
25/* PMU Command/Message Interfaces for Adaptive Power */ 25/* PMU Command/Message Interfaces for Adaptive Power */
26/* Macro to get Histogram index */ 26/* Macro to get Histogram index */
@@ -253,4 +253,4 @@ struct pmu_ap {
253 struct ap_ctrl ap_ctrl[PMU_AP_CTRL_ID_MAX]; 253 struct ap_ctrl ap_ctrl[PMU_AP_CTRL_ID_MAX];
254}; 254};
255 255
256#endif /* _GPMUIFAP_H_*/ 256#endif /* NVGPU_PMUIF_GPMUIF_AP_H*/
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_cmn.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_cmn.h
index e3317805..0989754a 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_cmn.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_cmn.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -19,8 +19,8 @@
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21 */ 21 */
22#ifndef _GPMUIFCMN_H_ 22#ifndef NVGPU_PMUIF_GPMUIF_CMN_H
23#define _GPMUIFCMN_H_ 23#define NVGPU_PMUIF_GPMUIF_CMN_H
24 24
25/* 25/*
26 * Defines the logical queue IDs that must be used when submitting 26 * Defines the logical queue IDs that must be used when submitting
@@ -139,4 +139,4 @@ struct nv_pmu_rpc_header {
139 u32 exec_time_pmu_ns; 139 u32 exec_time_pmu_ns;
140}; 140};
141 141
142#endif /* _GPMUIFCMN_H_*/ 142#endif /* NVGPU_PMUIF_GPMUIF_CMN_H*/
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_perfmon.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_perfmon.h
index ba6e9ec8..8324e366 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_perfmon.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_perfmon.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -19,8 +19,8 @@
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21 */ 21 */
22#ifndef _GPMUIFPERFMON_H_ 22#ifndef NVGPU_PMUIF_GPMUIF_PERFMON_H
23#define _GPMUIFPERFMON_H_ 23#define NVGPU_PMUIF_GPMUIF_PERFMON_H
24 24
25/*perfmon task defines*/ 25/*perfmon task defines*/
26 26
@@ -238,4 +238,4 @@ struct nv_pmu_rpc_struct_perfmon_query {
238 u32 scratch[1]; 238 u32 scratch[1];
239}; 239};
240 240
241#endif /* _GPMUIFPERFMON_H_ */ 241#endif /* NVGPU_PMUIF_GPMUIF_PERFMON_H */
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_pg.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_pg.h
index c156a6c0..69a7ea47 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_pg.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_pg.h
@@ -19,8 +19,8 @@
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21 */ 21 */
22#ifndef _GPMUIFPG_H_ 22#ifndef NVGPU_PMUIF_GPMUIF_PG_H
23#define _GPMUIFPG_H_ 23#define NVGPU_PMUIF_GPMUIF_PG_H
24 24
25#include "gpmuif_ap.h" 25#include "gpmuif_ap.h"
26#include "gpmuif_pg_rppg.h" 26#include "gpmuif_pg_rppg.h"
@@ -409,4 +409,4 @@ struct pmu_pg_stats {
409 u32 pg_gating_deny_cnt; 409 u32 pg_gating_deny_cnt;
410}; 410};
411 411
412#endif /* _GPMUIFPG_H_*/ 412#endif /* NVGPU_PMUIF_GPMUIF_PG_H*/
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_pg_rppg.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_pg_rppg.h
index 26d38ccb..05445f67 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_pg_rppg.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_pg_rppg.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -19,8 +19,8 @@
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21 */ 21 */
22#ifndef _GPMUIFRPPG_H_ 22#ifndef NVGPU_PMUIF_GPMUIF_PG_RPPG_H
23#define _GPMUIFRPPG_H_ 23#define NVGPU_PMUIF_GPMUIF_PG_RPPG_H
24 24
25#define NV_PMU_RPPG_CTRL_ID_GR (0x0000) 25#define NV_PMU_RPPG_CTRL_ID_GR (0x0000)
26#define NV_PMU_RPPG_CTRL_ID_MS (0x0001) 26#define NV_PMU_RPPG_CTRL_ID_MS (0x0001)
@@ -107,4 +107,4 @@ enum {
107 NV_PMU_RPPG_MSG_ID_INIT_CTRL_ACK = 0x0, 107 NV_PMU_RPPG_MSG_ID_INIT_CTRL_ACK = 0x0,
108}; 108};
109 109
110#endif 110#endif /* NVGPU_PMUIF_GPMUIF_PG_RPPG_H */
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_pmu.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_pmu.h
index 71684f6c..0528bd69 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_pmu.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_pmu.h
@@ -19,8 +19,8 @@
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21 */ 21 */
22#ifndef _GPMUIFPMU_H_ 22#ifndef NVGPU_PMUIF_GPMUIF_PMU_H
23#define _GPMUIFPMU_H_ 23#define NVGPU_PMUIF_GPMUIF_PMU_H
24 24
25#include <nvgpu/flcnif_cmn.h> 25#include <nvgpu/flcnif_cmn.h>
26#include "gpmuif_cmn.h" 26#include "gpmuif_cmn.h"
@@ -190,4 +190,4 @@ struct pmu_rc_msg {
190 struct pmu_rc_msg_unhandled_cmd unhandled_cmd; 190 struct pmu_rc_msg_unhandled_cmd unhandled_cmd;
191}; 191};
192 192
193#endif /* _GPMUIFPMU_H_*/ 193#endif /* NVGPU_PMUIF_GPMUIF_PMU_H*/
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifbios.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifbios.h
index 9934d3fd..e89fbc30 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifbios.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifbios.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -19,8 +19,8 @@
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21 */ 21 */
22#ifndef _GPMUIFBIOS_H_ 22#ifndef NVGPU_PMUIF_GPMUIFBIOS_H
23#define _GPMUIFBIOS_H_ 23#define NVGPU_PMUIF_GPMUIFBIOS_H
24 24
25struct nv_pmu_bios_vfield_register_segment_super { 25struct nv_pmu_bios_vfield_register_segment_super {
26 u8 type; 26 u8 type;
@@ -47,4 +47,4 @@ union nv_pmu_bios_vfield_register_segment {
47}; 47};
48 48
49 49
50#endif /* _GPMUIFBIOS_H_*/ 50#endif /* NVGPU_PMUIF_GPMUIFBIOS_H*/
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifboardobj.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifboardobj.h
index 697f95bc..a1eedc28 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifboardobj.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifboardobj.h
@@ -19,8 +19,8 @@
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21*/ 21*/
22#ifndef _GPMUIFBOARDOBJ_H_ 22#ifndef NVGPU_PMUIF_GPMUIFBOARDOBJ_H
23#define _GPMUIFBOARDOBJ_H_ 23#define NVGPU_PMUIF_GPMUIFBOARDOBJ_H
24 24
25#include <nvgpu/flcnif_cmn.h> 25#include <nvgpu/flcnif_cmn.h>
26#include "ctrl/ctrlboardobj.h" 26#include "ctrl/ctrlboardobj.h"
@@ -231,4 +231,4 @@ struct nv_pmu_rpc_struct_board_obj_grp_cmd
231 u32 scratch[1]; 231 u32 scratch[1];
232}; 232};
233 233
234#endif /* _GPMUIFBOARDOBJ_H_ */ 234#endif /* NVGPU_PMUIF_GPMUIFBOARDOBJ_H */
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifclk.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifclk.h
index 8f4c8564..cdab649e 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifclk.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifclk.h
@@ -20,8 +20,8 @@
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21*/ 21*/
22 22
23#ifndef _GPMUIFCLK_H_ 23#ifndef NVGPU_PMUIF_GPMUIFCLK_H
24#define _GPMUIFCLK_H_ 24#define NVGPU_PMUIF_GPMUIFCLK_H
25 25
26#include "ctrl/ctrlboardobj.h" 26#include "ctrl/ctrlboardobj.h"
27#include "ctrl/ctrlvolt.h" 27#include "ctrl/ctrlvolt.h"
@@ -555,4 +555,4 @@ union nv_pmu_clk_clk_fll_device_boardobj_get_status_union {
555 555
556NV_PMU_BOARDOBJ_GRP_GET_STATUS_MAKE_E32(clk, clk_fll_device); 556NV_PMU_BOARDOBJ_GRP_GET_STATUS_MAKE_E32(clk, clk_fll_device);
557 557
558#endif /*_GPMUIFCLK_H_*/ 558#endif /*NVGPU_PMUIF_GPMUIFCLK_H*/
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifperf.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifperf.h
index aedf7988..f7157ee9 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifperf.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifperf.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -19,8 +19,8 @@
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21 */ 21 */
22#ifndef _GPMUIFPERF_H_ 22#ifndef NVGPU_PMUIF_GPMUIFPERF_H
23#define _GPMUIFPERF_H_ 23#define NVGPU_PMUIF_GPMUIFPERF_H
24 24
25#include "gpmuifvolt.h" 25#include "gpmuifvolt.h"
26#include "gpmuifperfvfe.h" 26#include "gpmuifperfvfe.h"
@@ -151,4 +151,4 @@ struct nv_pmu_perf_msg {
151 }; 151 };
152}; 152};
153 153
154#endif /* _GPMUIFPERF_H_*/ 154#endif /* NVGPU_PMUIF_GPMUIFPERF_H*/
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifperfvfe.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifperfvfe.h
index 7764c72a..d128c328 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifperfvfe.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifperfvfe.h
@@ -19,8 +19,8 @@
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21 */ 21 */
22#ifndef _GPMUIFPERFVFE_H_ 22#ifndef NVGPU_PMUIF_GPMUIFPERFVFE_H
23#define _GPMUIFPERFVFE_H_ 23#define NVGPU_PMUIF_GPMUIFPERFVFE_H
24 24
25#include "gpmuifbios.h" 25#include "gpmuifbios.h"
26#include "gpmuifboardobj.h" 26#include "gpmuifboardobj.h"
@@ -203,4 +203,4 @@ union nv_pmu_perf_vfe_equ_boardobj_set_union {
203 203
204NV_PMU_BOARDOBJ_GRP_SET_MAKE_E255(perf, vfe_equ); 204NV_PMU_BOARDOBJ_GRP_SET_MAKE_E255(perf, vfe_equ);
205 205
206#endif /* _GPMUIFPERFVFE_H_*/ 206#endif /* NVGPU_PMUIF_GPMUIFPERFVFE_H*/
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifpmgr.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifpmgr.h
index 4ac86092..83f9ac1e 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifpmgr.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifpmgr.h
@@ -1,5 +1,5 @@
1/* 1/*
2* Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. 2* Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
3* 3*
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -20,8 +20,8 @@
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21*/ 21*/
22 22
23#ifndef _GPMUIFPMGR_H_ 23#ifndef NVGPU_PMUIF_GPMUIFPMGR_H
24#define _GPMUIFPMGR_H_ 24#define NVGPU_PMUIF_GPMUIFPMGR_H
25 25
26#include "ctrl/ctrlpmgr.h" 26#include "ctrl/ctrlpmgr.h"
27#include "gpmuifboardobj.h" 27#include "gpmuifboardobj.h"
@@ -440,4 +440,4 @@ struct nv_pmu_pmgr_msg {
440 }; 440 };
441}; 441};
442 442
443#endif 443#endif /* NVGPU_PMUIF_GPMUIFPMGR_H */
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifseq.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifseq.h
index fadad61e..af93a6e5 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifseq.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifseq.h
@@ -1,5 +1,5 @@
1/* 1/*
2* Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. 2* Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
3* 3*
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -19,8 +19,8 @@
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21*/ 21*/
22#ifndef _GPMUIFSEQ_H_ 22#ifndef NVGPU_PMUIF_GPMUIFSEQ_H
23#define _GPMUIFSEQ_H_ 23#define NVGPU_PMUIF_GPMUIFSEQ_H
24 24
25#include <nvgpu/flcnif_cmn.h> 25#include <nvgpu/flcnif_cmn.h>
26 26
@@ -79,4 +79,4 @@ struct nv_pmu_seq_msg {
79 }; 79 };
80}; 80};
81 81
82#endif 82#endif /* NVGPU_PMUIF_GPMUIFSEQ_H */
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuiftherm.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuiftherm.h
index 2caf9c9d..115e7ab3 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuiftherm.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuiftherm.h
@@ -1,5 +1,5 @@
1/* 1/*
2* Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. 2* Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
3* 3*
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -20,8 +20,8 @@
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21*/ 21*/
22 22
23#ifndef _GPMUIFTHERM_H_ 23#ifndef NVGPU_PMUIF_GPMUIFTHERM_H
24#define _GPMUIFTHERM_H_ 24#define NVGPU_PMUIF_GPMUIFTHERM_H
25 25
26#include <nvgpu/flcnif_cmn.h> 26#include <nvgpu/flcnif_cmn.h>
27 27
@@ -98,5 +98,5 @@ struct nv_pmu_therm_msg {
98 }; 98 };
99}; 99};
100 100
101#endif 101#endif /* NVGPU_PMUIF_GPMUIFTHERM_H */
102 102
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifthermsensor.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifthermsensor.h
index 8f2a8584..47d35da7 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifthermsensor.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifthermsensor.h
@@ -1,5 +1,5 @@
1/* 1/*
2* Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. 2* Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
3* 3*
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -20,8 +20,8 @@
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21*/ 21*/
22 22
23#ifndef _GPMUIFTHERMSENSOR_H_ 23#ifndef NVGPU_PMUIF_GPMUIFTHERMSENSOR_H
24#define _GPMUIFTHERMSENSOR_H_ 24#define NVGPU_PMUIF_GPMUIFTHERMSENSOR_H
25 25
26#include "ctrl/ctrltherm.h" 26#include "ctrl/ctrltherm.h"
27#include "gpmuifboardobj.h" 27#include "gpmuifboardobj.h"
@@ -102,4 +102,4 @@ union nv_pmu_therm_therm_channel_boardobj_set_union {
102 102
103NV_PMU_BOARDOBJ_GRP_SET_MAKE_E32(therm, therm_channel); 103NV_PMU_BOARDOBJ_GRP_SET_MAKE_E32(therm, therm_channel);
104 104
105#endif 105#endif /* NVGPU_PMUIF_GPMUIFTHERMSENSOR_H */
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifvolt.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifvolt.h
index b763c487..f2edd6c6 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifvolt.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuifvolt.h
@@ -19,8 +19,8 @@
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21*/ 21*/
22#ifndef _GPMUIFVOLT_H_ 22#ifndef NVGPU_PMUIF_GPMUIFVOLT_H
23#define _GPMUIFVOLT_H_ 23#define NVGPU_PMUIF_GPMUIFVOLT_H
24 24
25#include "gpmuifboardobj.h" 25#include "gpmuifboardobj.h"
26#include <nvgpu/flcnif_cmn.h> 26#include <nvgpu/flcnif_cmn.h>
@@ -399,4 +399,4 @@ struct nv_pmu_rpc_struct_volt_volt_rail_get_voltage {
399 u32 scratch[1]; 399 u32 scratch[1];
400}; 400};
401 401
402#endif /* _GPMUIFVOLT_H_*/ 402#endif /* NVGPU_PMUIF_GPMUIFVOLT_H*/
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/nvgpu_gpmu_cmdif.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/nvgpu_gpmu_cmdif.h
index 06486006..ce55f67d 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/nvgpu_gpmu_cmdif.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/nvgpu_gpmu_cmdif.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -19,8 +19,8 @@
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE. 20 * DEALINGS IN THE SOFTWARE.
21 */ 21 */
22#ifndef _NVGPUGPMUCMDIF_H_ 22#ifndef NVGPU_PMUIF_NVGPU_GPMU_CMDIF_H
23#define _NVGPUGPMUCMDIF_H_ 23#define NVGPU_PMUIF_NVGPU_GPMU_CMDIF_H
24 24
25#include <nvgpu/flcnif_cmn.h> 25#include <nvgpu/flcnif_cmn.h>
26#include "gpmuif_cmn.h" 26#include "gpmuif_cmn.h"
@@ -140,4 +140,4 @@ struct pmu_msg {
140#define PMU_UNIT_ID_IS_VALID(id) \ 140#define PMU_UNIT_ID_IS_VALID(id) \
141 (((id) < PMU_UNIT_END) || ((id) >= PMU_UNIT_TEST_START)) 141 (((id) < PMU_UNIT_END) || ((id) >= PMU_UNIT_TEST_START))
142 142
143#endif /* _NVGPUGPMUCMDIF_H_*/ 143#endif /* NVGPU_PMUIF_NVGPU_GPMU_CMDIF_H*/