Yakir Yang | 5182c1a | 2016-07-24 14:57:44 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) Fuzhou Rockchip Electronics Co.Ltd |
| 3 | * Author: Yakir Yang <ykk@rock-chips.com> |
| 4 | * |
| 5 | * This software is licensed under the terms of the GNU General Public |
| 6 | * License version 2, as published by the Free Software Foundation, and |
| 7 | * may be copied, distributed, and modified under those terms. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | */ |
| 14 | |
| 15 | #ifndef __ROCKCHIP_DRM_PSR___ |
| 16 | #define __ROCKCHIP_DRM_PSR___ |
| 17 | |
Sean Paul | b883c9b | 2016-08-18 12:01:46 -0700 | [diff] [blame] | 18 | void rockchip_drm_psr_flush_all(struct drm_device *dev); |
| 19 | int rockchip_drm_psr_flush(struct drm_crtc *crtc); |
| 20 | |
| 21 | int rockchip_drm_psr_activate(struct drm_crtc *crtc); |
| 22 | int rockchip_drm_psr_deactivate(struct drm_crtc *crtc); |
Yakir Yang | 5182c1a | 2016-07-24 14:57:44 +0800 | [diff] [blame] | 23 | |
| 24 | int rockchip_drm_psr_register(struct drm_encoder *encoder, |
| 25 | void (*psr_set)(struct drm_encoder *, bool enable)); |
| 26 | void rockchip_drm_psr_unregister(struct drm_encoder *encoder); |
| 27 | |
| 28 | #endif /* __ROCKCHIP_DRM_PSR__ */ |