blob: 520235c20708b5089b623caf9459dfd9351a72c8 [file] [log] [blame]
Sean Paul1452c252019-06-12 10:50:19 -04001// SPDX-License-Identifier: MIT
2/*
3 * Copyright (C) 2019 Google, Inc.
4 *
5 * Authors:
6 * Sean Paul <seanpaul@chromium.org>
7 */
8#ifndef DRM_SELF_REFRESH_HELPER_H_
9#define DRM_SELF_REFRESH_HELPER_H_
10
11struct drm_atomic_state;
12struct drm_crtc;
13
14void drm_self_refresh_helper_alter_state(struct drm_atomic_state *state);
Sean Pauld4da4e32019-09-18 16:07:29 -040015void drm_self_refresh_helper_update_avg_times(struct drm_atomic_state *state,
Rob Clark86de88c2019-11-04 09:37:36 -080016 unsigned int commit_time_ms,
17 unsigned int new_self_refresh_mask);
Sean Paul1452c252019-06-12 10:50:19 -040018
Sean Pauld4da4e32019-09-18 16:07:29 -040019int drm_self_refresh_helper_init(struct drm_crtc *crtc);
Sean Paul1452c252019-06-12 10:50:19 -040020void drm_self_refresh_helper_cleanup(struct drm_crtc *crtc);
21#endif