1*4882a593Smuzhiyun // SPDX-License-Identifier: MIT 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * Copyright (C) 2019 Google, Inc. 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Authors: 6*4882a593Smuzhiyun * Sean Paul <seanpaul@chromium.org> 7*4882a593Smuzhiyun */ 8*4882a593Smuzhiyun #ifndef DRM_SELF_REFRESH_HELPER_H_ 9*4882a593Smuzhiyun #define DRM_SELF_REFRESH_HELPER_H_ 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun struct drm_atomic_state; 12*4882a593Smuzhiyun struct drm_crtc; 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun void drm_self_refresh_helper_alter_state(struct drm_atomic_state *state); 15*4882a593Smuzhiyun void drm_self_refresh_helper_update_avg_times(struct drm_atomic_state *state, 16*4882a593Smuzhiyun unsigned int commit_time_ms, 17*4882a593Smuzhiyun unsigned int new_self_refresh_mask); 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun int drm_self_refresh_helper_init(struct drm_crtc *crtc); 20*4882a593Smuzhiyun void drm_self_refresh_helper_cleanup(struct drm_crtc *crtc); 21*4882a593Smuzhiyun #endif 22