a806d7cf6f3ab23db9d4e397604cc334ad3df70d
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / drm / rockchip / rockchip_drm_plane.h
1 /*
2  * Copyright (C) ROCKCHIP, Inc.
3  * Author:yzq<yzq@rock-chips.com>
4  * This software is licensed under the terms of the GNU General Public
5  * License version 2, as published by the Free Software Foundation, and
6  * may be copied, distributed, and modified under those terms.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  */
13 int rockchip_plane_mode_set(struct drm_plane *plane, struct drm_crtc *crtc,
14                           struct drm_framebuffer *fb, int crtc_x, int crtc_y,
15                           unsigned int crtc_w, unsigned int crtc_h,
16                           uint32_t src_x, uint32_t src_y,
17                           uint32_t src_w, uint32_t src_h);
18 void rockchip_plane_commit(struct drm_plane *plane);
19 void rockchip_plane_dpms(struct drm_plane *plane, int mode);
20 struct drm_plane *rockchip_plane_init(struct drm_device *dev,
21                                     unsigned int possible_crtcs, bool priv);