diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2017-02-06 06:19:24 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-02-10 12:43:46 -0500 |
commit | 3885fe099af0bda910ac8ee64f2cd1a5bbea3ab0 (patch) | |
tree | 602ead38e7631ce81db7e600802fdac0aba49974 /drivers/gpu/nvgpu/pmuif/gpmuiftherm.h | |
parent | 8da422ac577338ecb2d4114e1d8d5f36cf4cab78 (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/gpmuiftherm.h')
-rw-r--r-- | drivers/gpu/nvgpu/pmuif/gpmuiftherm.h | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/drivers/gpu/nvgpu/pmuif/gpmuiftherm.h b/drivers/gpu/nvgpu/pmuif/gpmuiftherm.h deleted file mode 100644 index 27e811ff..00000000 --- a/drivers/gpu/nvgpu/pmuif/gpmuiftherm.h +++ /dev/null | |||
@@ -1,93 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2016-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 | |||
14 | #ifndef _GPMUIFTHERM_H_ | ||
15 | #define _GPMUIFTHERM_H_ | ||
16 | |||
17 | #include <nvgpu/flcnif_cmn.h> | ||
18 | |||
19 | #define NV_PMU_THERM_CMD_ID_RPC 0x00000002 | ||
20 | #define NV_PMU_THERM_MSG_ID_RPC 0x00000002 | ||
21 | #define NV_PMU_THERM_RPC_ID_SLCT 0x00000000 | ||
22 | #define NV_PMU_THERM_RPC_ID_SLCT_EVENT_TEMP_TH_SET 0x00000006 | ||
23 | #define NV_PMU_THERM_EVENT_THERMAL_1 0x00000004 | ||
24 | #define NV_PMU_THERM_CMD_ID_HW_SLOWDOWN_NOTIFICATION 0x00000001 | ||
25 | #define NV_RM_PMU_THERM_HW_SLOWDOWN_NOTIFICATION_REQUEST_ENABLE 0x00000001 | ||
26 | #define NV_PMU_THERM_MSG_ID_EVENT_HW_SLOWDOWN_NOTIFICATION 0x00000001 | ||
27 | |||
28 | struct nv_pmu_therm_rpc_slct_event_temp_th_set { | ||
29 | s32 temp_threshold; | ||
30 | u8 event_id; | ||
31 | flcn_status flcn_stat; | ||
32 | }; | ||
33 | |||
34 | struct nv_pmu_therm_rpc_slct { | ||
35 | u32 mask_enabled; | ||
36 | flcn_status flcn_stat; | ||
37 | }; | ||
38 | |||
39 | struct nv_pmu_therm_rpc { | ||
40 | u8 function; | ||
41 | bool b_supported; | ||
42 | union { | ||
43 | struct nv_pmu_therm_rpc_slct slct; | ||
44 | struct nv_pmu_therm_rpc_slct_event_temp_th_set slct_event_temp_th_set; | ||
45 | } params; | ||
46 | }; | ||
47 | |||
48 | struct nv_pmu_therm_cmd_rpc { | ||
49 | u8 cmd_type; | ||
50 | u8 pad[3]; | ||
51 | struct nv_pmu_allocation request; | ||
52 | }; | ||
53 | |||
54 | struct nv_pmu_therm_cmd_hw_slowdown_notification { | ||
55 | u8 cmd_type; | ||
56 | u8 request; | ||
57 | }; | ||
58 | |||
59 | #define NV_PMU_THERM_CMD_RPC_ALLOC_OFFSET \ | ||
60 | offsetof(struct nv_pmu_therm_cmd_rpc, request) | ||
61 | |||
62 | struct nv_pmu_therm_cmd { | ||
63 | union { | ||
64 | u8 cmd_type; | ||
65 | struct nv_pmu_therm_cmd_rpc rpc; | ||
66 | struct nv_pmu_therm_cmd_hw_slowdown_notification hw_slct_notification; | ||
67 | }; | ||
68 | }; | ||
69 | |||
70 | struct nv_pmu_therm_msg_rpc { | ||
71 | u8 msg_type; | ||
72 | u8 rsvd[3]; | ||
73 | struct nv_pmu_allocation response; | ||
74 | }; | ||
75 | |||
76 | struct nv_pmu_therm_msg_event_hw_slowdown_notification { | ||
77 | u8 msg_type; | ||
78 | u32 mask; | ||
79 | }; | ||
80 | |||
81 | #define NV_PMU_THERM_MSG_RPC_ALLOC_OFFSET \ | ||
82 | offsetof(struct nv_pmu_therm_msg_rpc, response) | ||
83 | |||
84 | struct nv_pmu_therm_msg { | ||
85 | union { | ||
86 | u8 msg_type; | ||
87 | struct nv_pmu_therm_msg_rpc rpc; | ||
88 | struct nv_pmu_therm_msg_event_hw_slowdown_notification hw_slct_msg; | ||
89 | }; | ||
90 | }; | ||
91 | |||
92 | #endif | ||
93 | |||