]> git.ipfire.org Git - thirdparty/kernel/stable.git/blame - drivers/gpu/drm/rockchip/rockchip_drm_psr.h
Merge branch 'drm-next-5.1' of git://people.freedesktop.org/~agd5f/linux into drm...
[thirdparty/kernel/stable.git] / drivers / gpu / drm / rockchip / rockchip_drm_psr.h
CommitLineData
5182c1a5
YY
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
b883c9ba 18void rockchip_drm_psr_flush_all(struct drm_device *dev);
b883c9ba 19
6e6cf3e2
TF
20int rockchip_drm_psr_inhibit_put(struct drm_encoder *encoder);
21int rockchip_drm_psr_inhibit_get(struct drm_encoder *encoder);
5182c1a5 22
15609559
EBS
23void rockchip_drm_psr_inhibit_get_state(struct drm_atomic_state *state);
24void rockchip_drm_psr_inhibit_put_state(struct drm_atomic_state *state);
25
5182c1a5 26int rockchip_drm_psr_register(struct drm_encoder *encoder,
2a7b44c5 27 int (*psr_set)(struct drm_encoder *, bool enable));
5182c1a5
YY
28void rockchip_drm_psr_unregister(struct drm_encoder *encoder);
29
30#endif /* __ROCKCHIP_DRM_PSR__ */