11dedbd3bSFrançois Tigeot /*
21dedbd3bSFrançois Tigeot  * Copyright © 2016 Intel Corporation
31dedbd3bSFrançois Tigeot  *
41dedbd3bSFrançois Tigeot  * Permission is hereby granted, free of charge, to any person obtaining a
51dedbd3bSFrançois Tigeot  * copy of this software and associated documentation files (the "Software"),
61dedbd3bSFrançois Tigeot  * to deal in the Software without restriction, including without limitation
71dedbd3bSFrançois Tigeot  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
81dedbd3bSFrançois Tigeot  * and/or sell copies of the Software, and to permit persons to whom the
91dedbd3bSFrançois Tigeot  * Software is furnished to do so, subject to the following conditions:
101dedbd3bSFrançois Tigeot  *
111dedbd3bSFrançois Tigeot  * The above copyright notice and this permission notice shall be included in
121dedbd3bSFrançois Tigeot  * all copies or substantial portions of the Software.
131dedbd3bSFrançois Tigeot  *
141dedbd3bSFrançois Tigeot  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
151dedbd3bSFrançois Tigeot  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
161dedbd3bSFrançois Tigeot  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
171dedbd3bSFrançois Tigeot  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
181dedbd3bSFrançois Tigeot  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
191dedbd3bSFrançois Tigeot  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
201dedbd3bSFrançois Tigeot  * OTHER DEALINGS IN THE SOFTWARE.
211dedbd3bSFrançois Tigeot  */
221dedbd3bSFrançois Tigeot 
231dedbd3bSFrançois Tigeot /*
241dedbd3bSFrançois Tigeot  * This header file contains mode setting related functions and definitions
251dedbd3bSFrançois Tigeot  * which are only used within the drm kms helper module as internal
261dedbd3bSFrançois Tigeot  * implementation details and are not exported to drivers.
271dedbd3bSFrançois Tigeot  */
281dedbd3bSFrançois Tigeot 
29*3f2dd94aSFrançois Tigeot #include <drm/drm_connector.h>
30*3f2dd94aSFrançois Tigeot #include <drm/drm_crtc.h>
311dedbd3bSFrançois Tigeot #include <drm/drm_dp_helper.h>
32*3f2dd94aSFrançois Tigeot #include <drm/drm_encoder.h>
33*3f2dd94aSFrançois Tigeot #include <drm/drm_modes.h>
341dedbd3bSFrançois Tigeot 
351dedbd3bSFrançois Tigeot /* drm_fb_helper.c */
361dedbd3bSFrançois Tigeot #ifdef CONFIG_DRM_FBDEV_EMULATION
371dedbd3bSFrançois Tigeot int drm_fb_helper_modinit(void);
381dedbd3bSFrançois Tigeot #else
drm_fb_helper_modinit(void)391dedbd3bSFrançois Tigeot static inline int drm_fb_helper_modinit(void)
401dedbd3bSFrançois Tigeot {
411dedbd3bSFrançois Tigeot 	return 0;
421dedbd3bSFrançois Tigeot }
431dedbd3bSFrançois Tigeot #endif
441dedbd3bSFrançois Tigeot 
451dedbd3bSFrançois Tigeot /* drm_dp_aux_dev.c */
461dedbd3bSFrançois Tigeot #ifdef CONFIG_DRM_DP_AUX_CHARDEV
471dedbd3bSFrançois Tigeot int drm_dp_aux_dev_init(void);
481dedbd3bSFrançois Tigeot void drm_dp_aux_dev_exit(void);
491dedbd3bSFrançois Tigeot int drm_dp_aux_register_devnode(struct drm_dp_aux *aux);
501dedbd3bSFrançois Tigeot void drm_dp_aux_unregister_devnode(struct drm_dp_aux *aux);
511dedbd3bSFrançois Tigeot #else
drm_dp_aux_dev_init(void)521dedbd3bSFrançois Tigeot static inline int drm_dp_aux_dev_init(void)
531dedbd3bSFrançois Tigeot {
541dedbd3bSFrançois Tigeot 	return 0;
551dedbd3bSFrançois Tigeot }
561dedbd3bSFrançois Tigeot 
drm_dp_aux_dev_exit(void)571dedbd3bSFrançois Tigeot static inline void drm_dp_aux_dev_exit(void)
581dedbd3bSFrançois Tigeot {
591dedbd3bSFrançois Tigeot }
601dedbd3bSFrançois Tigeot 
drm_dp_aux_register_devnode(struct drm_dp_aux * aux)611dedbd3bSFrançois Tigeot static inline int drm_dp_aux_register_devnode(struct drm_dp_aux *aux)
621dedbd3bSFrançois Tigeot {
631dedbd3bSFrançois Tigeot 	return 0;
641dedbd3bSFrançois Tigeot }
651dedbd3bSFrançois Tigeot 
drm_dp_aux_unregister_devnode(struct drm_dp_aux * aux)661dedbd3bSFrançois Tigeot static inline void drm_dp_aux_unregister_devnode(struct drm_dp_aux *aux)
671dedbd3bSFrançois Tigeot {
681dedbd3bSFrançois Tigeot }
691dedbd3bSFrançois Tigeot #endif
70*3f2dd94aSFrançois Tigeot 
71*3f2dd94aSFrançois Tigeot /* drm_probe_helper.c */
72*3f2dd94aSFrançois Tigeot enum drm_mode_status drm_crtc_mode_valid(struct drm_crtc *crtc,
73*3f2dd94aSFrançois Tigeot 					 const struct drm_display_mode *mode);
74*3f2dd94aSFrançois Tigeot enum drm_mode_status drm_encoder_mode_valid(struct drm_encoder *encoder,
75*3f2dd94aSFrançois Tigeot 					    const struct drm_display_mode *mode);
76*3f2dd94aSFrançois Tigeot enum drm_mode_status drm_connector_mode_valid(struct drm_connector *connector,
77*3f2dd94aSFrançois Tigeot 					      struct drm_display_mode *mode);
78