| 1 | |
| 2 | |
| 3 | * Copyright (C) 2019 Google, Inc.
|
| 4 | *
|
| 5 | * Authors:
|
| 6 | * Sean Paul <[email protected]>
|
| 7 |
|
| 8 | #ifndef DRM_SELF_REFRESH_HELPER_H_
|
| 9 | #define DRM_SELF_REFRESH_HELPER_H_
|
| 10 |
|
| 11 | struct drm_atomic_commit;
|
| 12 | struct drm_crtc;
|
| 13 |
|
| 14 | void drm_self_refresh_helper_alter_state(struct drm_atomic_commit *state);
|
| 15 | void drm_self_refresh_helper_update_avg_times(struct drm_atomic_commit *state,
|
| 16 | unsigned int commit_time_ms,
|
| 17 | unsigned int new_self_refresh_mask);
|
| 18 |
|
| 19 | int drm_self_refresh_helper_init(struct drm_crtc *crtc);
|
| 20 | void drm_self_refresh_helper_cleanup(struct drm_crtc *crtc);
|
| 21 | #endif
|