2019-05-29 21:17:56 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2016-07-24 13:57:44 +07:00
|
|
|
/*
|
|
|
|
* Copyright (C) Fuzhou Rockchip Electronics Co.Ltd
|
|
|
|
* Author: Yakir Yang <ykk@rock-chips.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ROCKCHIP_DRM_PSR___
|
|
|
|
#define __ROCKCHIP_DRM_PSR___
|
|
|
|
|
2016-08-19 02:01:46 +07:00
|
|
|
void rockchip_drm_psr_flush_all(struct drm_device *dev);
|
|
|
|
|
2018-04-23 17:50:01 +07:00
|
|
|
int rockchip_drm_psr_inhibit_put(struct drm_encoder *encoder);
|
|
|
|
int rockchip_drm_psr_inhibit_get(struct drm_encoder *encoder);
|
2016-07-24 13:57:44 +07:00
|
|
|
|
2018-12-05 19:33:10 +07:00
|
|
|
void rockchip_drm_psr_inhibit_get_state(struct drm_atomic_state *state);
|
|
|
|
void rockchip_drm_psr_inhibit_put_state(struct drm_atomic_state *state);
|
|
|
|
|
2016-07-24 13:57:44 +07:00
|
|
|
int rockchip_drm_psr_register(struct drm_encoder *encoder,
|
2018-04-23 17:49:49 +07:00
|
|
|
int (*psr_set)(struct drm_encoder *, bool enable));
|
2016-07-24 13:57:44 +07:00
|
|
|
void rockchip_drm_psr_unregister(struct drm_encoder *encoder);
|
|
|
|
|
|
|
|
#endif /* __ROCKCHIP_DRM_PSR__ */
|