1/* 2 * Xilinx DRM crtc header for Xilinx 3 * 4 * Copyright (C) 2013 Xilinx, Inc. 5 * 6 * Author: Hyun Woo Kwon <hyunk@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_CRTC_H_ 19#define _XILINX_DRM_CRTC_H_ 20 21struct drm_device; 22struct drm_crtc; 23 24void xilinx_drm_crtc_enable_vblank(struct drm_crtc *base_crtc); 25void xilinx_drm_crtc_disable_vblank(struct drm_crtc *base_crtc); 26void xilinx_drm_crtc_cancel_page_flip(struct drm_crtc *base_crtc, 27 struct drm_file *file); 28 29void xilinx_drm_crtc_restore(struct drm_crtc *base_crtc); 30 31unsigned int xilinx_drm_crtc_get_max_width(struct drm_crtc *base_crtc); 32bool xilinx_drm_crtc_check_format(struct drm_crtc *base_crtc, uint32_t fourcc); 33uint32_t xilinx_drm_crtc_get_format(struct drm_crtc *base_crtc); 34unsigned int xilinx_drm_crtc_get_align(struct drm_crtc *base_crtc); 35 36struct drm_crtc *xilinx_drm_crtc_create(struct drm_device *drm); 37void xilinx_drm_crtc_destroy(struct drm_crtc *base_crtc); 38 39#endif /* _XILINX_DRM_CRTC_H_ */ 40