xref: /OK3568_Linux_fs/kernel/drivers/gpu/drm/sti/sti_crtc.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright (C) STMicroelectronics SA 2014
4*4882a593Smuzhiyun  * Author: Benjamin Gaignard <benjamin.gaignard@st.com> for STMicroelectronics.
5*4882a593Smuzhiyun  */
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun #ifndef _STI_CRTC_H_
8*4882a593Smuzhiyun #define _STI_CRTC_H_
9*4882a593Smuzhiyun 
10*4882a593Smuzhiyun struct drm_crtc;
11*4882a593Smuzhiyun struct drm_device;
12*4882a593Smuzhiyun struct drm_plane;
13*4882a593Smuzhiyun struct notifier_block;
14*4882a593Smuzhiyun struct sti_mixer;
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun int sti_crtc_init(struct drm_device *drm_dev, struct sti_mixer *mixer,
17*4882a593Smuzhiyun 		  struct drm_plane *primary, struct drm_plane *cursor);
18*4882a593Smuzhiyun int sti_crtc_vblank_cb(struct notifier_block *nb,
19*4882a593Smuzhiyun 		       unsigned long event, void *data);
20*4882a593Smuzhiyun bool sti_crtc_is_main(struct drm_crtc *drm_crtc);
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun #endif
23