diff options
Diffstat (limited to 'drivers/gpu/drm/amd/include/cgs_common.h')
-rw-r--r-- | drivers/gpu/drm/amd/include/cgs_common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/include/cgs_common.h b/drivers/gpu/drm/amd/include/cgs_common.h index aec38fc3834f..ab84d4947247 100644 --- a/drivers/gpu/drm/amd/include/cgs_common.h +++ b/drivers/gpu/drm/amd/include/cgs_common.h | |||
@@ -589,6 +589,8 @@ typedef int(*cgs_get_active_displays_info)( | |||
589 | void *cgs_device, | 589 | void *cgs_device, |
590 | struct cgs_display_info *info); | 590 | struct cgs_display_info *info); |
591 | 591 | ||
592 | typedef int (*cgs_notify_dpm_enabled)(void *cgs_device, bool enabled); | ||
593 | |||
592 | typedef int (*cgs_call_acpi_method)(void *cgs_device, | 594 | typedef int (*cgs_call_acpi_method)(void *cgs_device, |
593 | uint32_t acpi_method, | 595 | uint32_t acpi_method, |
594 | uint32_t acpi_function, | 596 | uint32_t acpi_function, |
@@ -644,6 +646,8 @@ struct cgs_ops { | |||
644 | cgs_set_clockgating_state set_clockgating_state; | 646 | cgs_set_clockgating_state set_clockgating_state; |
645 | /* display manager */ | 647 | /* display manager */ |
646 | cgs_get_active_displays_info get_active_displays_info; | 648 | cgs_get_active_displays_info get_active_displays_info; |
649 | /* notify dpm enabled */ | ||
650 | cgs_notify_dpm_enabled notify_dpm_enabled; | ||
647 | /* ACPI */ | 651 | /* ACPI */ |
648 | cgs_call_acpi_method call_acpi_method; | 652 | cgs_call_acpi_method call_acpi_method; |
649 | /* get system info */ | 653 | /* get system info */ |
@@ -734,8 +738,12 @@ struct cgs_device | |||
734 | CGS_CALL(set_powergating_state, dev, block_type, state) | 738 | CGS_CALL(set_powergating_state, dev, block_type, state) |
735 | #define cgs_set_clockgating_state(dev, block_type, state) \ | 739 | #define cgs_set_clockgating_state(dev, block_type, state) \ |
736 | CGS_CALL(set_clockgating_state, dev, block_type, state) | 740 | CGS_CALL(set_clockgating_state, dev, block_type, state) |
741 | #define cgs_notify_dpm_enabled(dev, enabled) \ | ||
742 | CGS_CALL(notify_dpm_enabled, dev, enabled) | ||
743 | |||
737 | #define cgs_get_active_displays_info(dev, info) \ | 744 | #define cgs_get_active_displays_info(dev, info) \ |
738 | CGS_CALL(get_active_displays_info, dev, info) | 745 | CGS_CALL(get_active_displays_info, dev, info) |
746 | |||
739 | #define cgs_call_acpi_method(dev, acpi_method, acpi_function, pintput, poutput, output_count, input_size, output_size) \ | 747 | #define cgs_call_acpi_method(dev, acpi_method, acpi_function, pintput, poutput, output_count, input_size, output_size) \ |
740 | CGS_CALL(call_acpi_method, dev, acpi_method, acpi_function, pintput, poutput, output_count, input_size, output_size) | 748 | CGS_CALL(call_acpi_method, dev, acpi_method, acpi_function, pintput, poutput, output_count, input_size, output_size) |
741 | #define cgs_query_system_info(dev, sys_info) \ | 749 | #define cgs_query_system_info(dev, sys_info) \ |