18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Copyright (c) 2016 Intel Corporation
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Permission to use, copy, modify, distribute, and sell this software and its
58c2ecf20Sopenharmony_ci * documentation for any purpose is hereby granted without fee, provided that
68c2ecf20Sopenharmony_ci * the above copyright notice appear in all copies and that both that copyright
78c2ecf20Sopenharmony_ci * notice and this permission notice appear in supporting documentation, and
88c2ecf20Sopenharmony_ci * that the name of the copyright holders not be used in advertising or
98c2ecf20Sopenharmony_ci * publicity pertaining to distribution of the software without specific,
108c2ecf20Sopenharmony_ci * written prior permission.  The copyright holders make no representations
118c2ecf20Sopenharmony_ci * about the suitability of this software for any purpose.  It is provided "as
128c2ecf20Sopenharmony_ci * is" without express or implied warranty.
138c2ecf20Sopenharmony_ci *
148c2ecf20Sopenharmony_ci * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
158c2ecf20Sopenharmony_ci * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
168c2ecf20Sopenharmony_ci * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
178c2ecf20Sopenharmony_ci * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
188c2ecf20Sopenharmony_ci * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
198c2ecf20Sopenharmony_ci * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
208c2ecf20Sopenharmony_ci * OF THIS SOFTWARE.
218c2ecf20Sopenharmony_ci */
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci#ifndef __DRM_KMS_HELPER_H__
248c2ecf20Sopenharmony_ci#define __DRM_KMS_HELPER_H__
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_cistruct drm_crtc;
278c2ecf20Sopenharmony_cistruct drm_crtc_funcs;
288c2ecf20Sopenharmony_cistruct drm_device;
298c2ecf20Sopenharmony_cistruct drm_framebuffer;
308c2ecf20Sopenharmony_cistruct drm_mode_fb_cmd2;
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_civoid drm_helper_move_panel_connectors_to_head(struct drm_device *);
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_civoid drm_helper_mode_fill_fb_struct(struct drm_device *dev,
358c2ecf20Sopenharmony_ci				    struct drm_framebuffer *fb,
368c2ecf20Sopenharmony_ci				    const struct drm_mode_fb_cmd2 *mode_cmd);
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ciint drm_crtc_init(struct drm_device *dev, struct drm_crtc *crtc,
398c2ecf20Sopenharmony_ci		  const struct drm_crtc_funcs *funcs);
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ciint drm_mode_config_helper_suspend(struct drm_device *dev);
428c2ecf20Sopenharmony_ciint drm_mode_config_helper_resume(struct drm_device *dev);
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci#endif
45