1 1.1 riastrad /* $NetBSD: drm_modeset_helper.h,v 1.2 2021/12/18 23:45:46 riastradh Exp $ */ 2 1.1 riastrad 3 1.1 riastrad /* 4 1.1 riastrad * Copyright (c) 2016 Intel Corporation 5 1.1 riastrad * 6 1.1 riastrad * Permission to use, copy, modify, distribute, and sell this software and its 7 1.1 riastrad * documentation for any purpose is hereby granted without fee, provided that 8 1.1 riastrad * the above copyright notice appear in all copies and that both that copyright 9 1.1 riastrad * notice and this permission notice appear in supporting documentation, and 10 1.1 riastrad * that the name of the copyright holders not be used in advertising or 11 1.1 riastrad * publicity pertaining to distribution of the software without specific, 12 1.1 riastrad * written prior permission. The copyright holders make no representations 13 1.1 riastrad * about the suitability of this software for any purpose. It is provided "as 14 1.1 riastrad * is" without express or implied warranty. 15 1.1 riastrad * 16 1.1 riastrad * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 17 1.1 riastrad * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 18 1.1 riastrad * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR 19 1.1 riastrad * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 20 1.1 riastrad * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 21 1.1 riastrad * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 22 1.1 riastrad * OF THIS SOFTWARE. 23 1.1 riastrad */ 24 1.1 riastrad 25 1.1 riastrad #ifndef __DRM_KMS_HELPER_H__ 26 1.1 riastrad #define __DRM_KMS_HELPER_H__ 27 1.1 riastrad 28 1.1 riastrad struct drm_crtc; 29 1.1 riastrad struct drm_crtc_funcs; 30 1.1 riastrad struct drm_device; 31 1.1 riastrad struct drm_framebuffer; 32 1.1 riastrad struct drm_mode_fb_cmd2; 33 1.1 riastrad 34 1.1 riastrad void drm_helper_move_panel_connectors_to_head(struct drm_device *); 35 1.1 riastrad 36 1.1 riastrad void drm_helper_mode_fill_fb_struct(struct drm_device *dev, 37 1.1 riastrad struct drm_framebuffer *fb, 38 1.1 riastrad const struct drm_mode_fb_cmd2 *mode_cmd); 39 1.1 riastrad 40 1.1 riastrad int drm_crtc_init(struct drm_device *dev, struct drm_crtc *crtc, 41 1.1 riastrad const struct drm_crtc_funcs *funcs); 42 1.1 riastrad 43 1.1 riastrad int drm_mode_config_helper_suspend(struct drm_device *dev); 44 1.1 riastrad int drm_mode_config_helper_resume(struct drm_device *dev); 45 1.1 riastrad 46 1.1 riastrad #endif 47