]> rtime.felk.cvut.cz Git - vajnamar/linux-xlnx.git/blob - drivers/gpu/drm/xilinx/xilinx_drm_sdi.h
drm: xilinx: sdi: adding vblank support
[vajnamar/linux-xlnx.git] / drivers / gpu / drm / xilinx / xilinx_drm_sdi.h
1 /*
2  * SDI subsystem header for Xilinx DRM KMS
3  *
4  *  Copyright (C) 2017 Xilinx, Inc.
5  *
6  *  Author: Saurabh Sengar <saurabhs@xilinx.com>
7  *
8  * This software is licensed under the terms of the GNU General Public
9  * License version 2, as published by the Free Software Foundation, and
10  * may be copied, distributed, and modified under those terms.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  */
17
18 #ifndef _XILINX_DRM_SDI_H_
19 #define _XILINX_DRM_SDI_H_
20
21 struct xilinx_sdi;
22 struct device_node;
23
24 struct xilinx_sdi *xilinx_drm_sdi_of_get(struct device_node *np);
25 void xilinx_drm_sdi_enable_vblank(struct xilinx_sdi *sdi,
26                                   void (*vblank_fn)(void *),
27                                   void *vblank_data);
28 void xilinx_drm_sdi_disable_vblank(struct xilinx_sdi *sdi);
29 #endif /* _XILINX_DRM_SDI_H_ */