1/* 2 * Xilinx DRM KMS Framebuffer helper header 3 * 4 * Copyright (C) 2015 Xilinx, Inc. 5 * 6 * Author: Hyun Woo Kwon <hyun.kwon@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_FB_H_ 19#define _XILINX_DRM_FB_H_ 20 21struct drm_fb_helper; 22 23struct drm_gem_cma_object * 24xilinx_drm_fb_get_gem_obj(struct drm_framebuffer *base_fb, unsigned int plane); 25 26struct drm_fb_helper * 27xilinx_drm_fb_init(struct drm_device *drm, unsigned int preferred_bpp, 28 unsigned int num_crtc, unsigned int max_conn_count, 29 unsigned int align, unsigned int vres_mult); 30void xilinx_drm_fb_fini(struct drm_fb_helper *fb_helper); 31 32void xilinx_drm_fb_restore_mode(struct drm_fb_helper *fb_helper); 33struct drm_framebuffer * 34xilinx_drm_fb_create(struct drm_device *drm, struct drm_file *file_priv, 35 const struct drm_mode_fb_cmd2 *mode_cmd); 36void xilinx_drm_fb_hotplug_event(struct drm_fb_helper *fb_helper); 37void xilinx_drm_fb_set_config(struct drm_fb_helper *fb_helper, 38 struct drm_mode_set *set); 39 40#endif /* _XILINX_DRM_FB_H_ */ 41