162306a36Sopenharmony_ci// SPDX-License-Identifier: MIT 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (C) 2019 Google, Inc. 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Authors: 662306a36Sopenharmony_ci * Sean Paul <seanpaul@chromium.org> 762306a36Sopenharmony_ci */ 862306a36Sopenharmony_ci#ifndef DRM_SELF_REFRESH_HELPER_H_ 962306a36Sopenharmony_ci#define DRM_SELF_REFRESH_HELPER_H_ 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_cistruct drm_atomic_state; 1262306a36Sopenharmony_cistruct drm_crtc; 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_civoid drm_self_refresh_helper_alter_state(struct drm_atomic_state *state); 1562306a36Sopenharmony_civoid drm_self_refresh_helper_update_avg_times(struct drm_atomic_state *state, 1662306a36Sopenharmony_ci unsigned int commit_time_ms, 1762306a36Sopenharmony_ci unsigned int new_self_refresh_mask); 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ciint drm_self_refresh_helper_init(struct drm_crtc *crtc); 2062306a36Sopenharmony_civoid drm_self_refresh_helper_cleanup(struct drm_crtc *crtc); 2162306a36Sopenharmony_ci#endif 22