Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (c) 2016 Intel Corporation
0003  *
0004  * Permission to use, copy, modify, distribute, and sell this software and its
0005  * documentation for any purpose is hereby granted without fee, provided that
0006  * the above copyright notice appear in all copies and that both that copyright
0007  * notice and this permission notice appear in supporting documentation, and
0008  * that the name of the copyright holders not be used in advertising or
0009  * publicity pertaining to distribution of the software without specific,
0010  * written prior permission.  The copyright holders make no representations
0011  * about the suitability of this software for any purpose.  It is provided "as
0012  * is" without express or implied warranty.
0013  *
0014  * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
0015  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
0016  * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
0017  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
0018  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
0019  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
0020  * OF THIS SOFTWARE.
0021  */
0022 
0023 #ifndef __DRM_KMS_HELPER_H__
0024 #define __DRM_KMS_HELPER_H__
0025 
0026 struct drm_crtc;
0027 struct drm_crtc_funcs;
0028 struct drm_device;
0029 struct drm_framebuffer;
0030 struct drm_mode_fb_cmd2;
0031 
0032 void drm_helper_move_panel_connectors_to_head(struct drm_device *);
0033 
0034 void drm_helper_mode_fill_fb_struct(struct drm_device *dev,
0035                     struct drm_framebuffer *fb,
0036                     const struct drm_mode_fb_cmd2 *mode_cmd);
0037 
0038 int drm_crtc_init(struct drm_device *dev, struct drm_crtc *crtc,
0039           const struct drm_crtc_funcs *funcs);
0040 
0041 int drm_mode_config_helper_suspend(struct drm_device *dev);
0042 int drm_mode_config_helper_resume(struct drm_device *dev);
0043 
0044 #endif