2016-07-24 06:57:44 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) Fuzhou Rockchip Electronics Co.Ltd
|
|
|
|
* Author: Yakir Yang <ykk@rock-chips.com>
|
|
|
|
*
|
|
|
|
* This software is licensed under the terms of the GNU General Public
|
|
|
|
* License version 2, as published by the Free Software Foundation, and
|
|
|
|
* may be copied, distributed, and modified under those terms.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ROCKCHIP_DRM_PSR___
|
|
|
|
#define __ROCKCHIP_DRM_PSR___
|
|
|
|
|
2016-08-18 19:01:46 +00:00
|
|
|
void rockchip_drm_psr_flush_all(struct drm_device *dev);
|
|
|
|
|
2018-04-23 10:50:01 +00:00
|
|
|
int rockchip_drm_psr_inhibit_put(struct drm_encoder *encoder);
|
|
|
|
int rockchip_drm_psr_inhibit_get(struct drm_encoder *encoder);
|
2016-07-24 06:57:44 +00:00
|
|
|
|
|
|
|
int rockchip_drm_psr_register(struct drm_encoder *encoder,
|
2018-04-23 10:49:49 +00:00
|
|
|
int (*psr_set)(struct drm_encoder *, bool enable));
|
2016-07-24 06:57:44 +00:00
|
|
|
void rockchip_drm_psr_unregister(struct drm_encoder *encoder);
|
|
|
|
|
|
|
|
#endif /* __ROCKCHIP_DRM_PSR__ */
|