aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2015-09-21 02:29:10 -0400
committerAlex Deucher <alexander.deucher@amd.com>2015-12-21 16:42:05 -0500
commit7e85be994828b15014e4748e4b5eca015be6adce (patch)
tree912c4f072d216f20f2593ee9024330e650fe1284 /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
parent3a2c788d95a24dc4cf720ddd19c1b115a03f41bf (diff)
drm/amdgpu: mv some definition from amdgpu_acpi.c to amdgpu_acpi.h
These will be shared with the new powerplay module. Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c56
1 files changed, 0 insertions, 56 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
index a142d5ae148d..5df5b8390b03 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
@@ -32,63 +32,7 @@
32#include "amdgpu_acpi.h" 32#include "amdgpu_acpi.h"
33#include "atom.h" 33#include "atom.h"
34 34
35#define ACPI_AC_CLASS "ac_adapter"
36
37extern void amdgpu_pm_acpi_event_handler(struct amdgpu_device *adev); 35extern void amdgpu_pm_acpi_event_handler(struct amdgpu_device *adev);
38
39struct atif_verify_interface {
40 u16 size; /* structure size in bytes (includes size field) */
41 u16 version; /* version */
42 u32 notification_mask; /* supported notifications mask */
43 u32 function_bits; /* supported functions bit vector */
44} __packed;
45
46struct atif_system_params {
47 u16 size; /* structure size in bytes (includes size field) */
48 u32 valid_mask; /* valid flags mask */
49 u32 flags; /* flags */
50 u8 command_code; /* notify command code */
51} __packed;
52
53struct atif_sbios_requests {
54 u16 size; /* structure size in bytes (includes size field) */
55 u32 pending; /* pending sbios requests */
56 u8 panel_exp_mode; /* panel expansion mode */
57 u8 thermal_gfx; /* thermal state: target gfx controller */
58 u8 thermal_state; /* thermal state: state id (0: exit state, non-0: state) */
59 u8 forced_power_gfx; /* forced power state: target gfx controller */
60 u8 forced_power_state; /* forced power state: state id */
61 u8 system_power_src; /* system power source */
62 u8 backlight_level; /* panel backlight level (0-255) */
63} __packed;
64
65#define ATIF_NOTIFY_MASK 0x3
66#define ATIF_NOTIFY_NONE 0
67#define ATIF_NOTIFY_81 1
68#define ATIF_NOTIFY_N 2
69
70struct atcs_verify_interface {
71 u16 size; /* structure size in bytes (includes size field) */
72 u16 version; /* version */
73 u32 function_bits; /* supported functions bit vector */
74} __packed;
75
76#define ATCS_VALID_FLAGS_MASK 0x3
77
78struct atcs_pref_req_input {
79 u16 size; /* structure size in bytes (includes size field) */
80 u16 client_id; /* client id (bit 2-0: func num, 7-3: dev num, 15-8: bus num) */
81 u16 valid_flags_mask; /* valid flags mask */
82 u16 flags; /* flags */
83 u8 req_type; /* request type */
84 u8 perf_req; /* performance request */
85} __packed;
86
87struct atcs_pref_req_output {
88 u16 size; /* structure size in bytes (includes size field) */
89 u8 ret_val; /* return value */
90} __packed;
91
92/* Call the ATIF method 36/* Call the ATIF method
93 */ 37 */
94/** 38/**