xref: /linux/drivers/gpu/drm/drm_crtc_helper_internal.h (revision 699fbeeac4668ba921a5f588736a56b332bd31c4)
1e15c8f4bSDaniel Vetter /*
2e15c8f4bSDaniel Vetter  * Copyright © 2016 Intel Corporation
3e15c8f4bSDaniel Vetter  *
4e15c8f4bSDaniel Vetter  * Permission is hereby granted, free of charge, to any person obtaining a
5e15c8f4bSDaniel Vetter  * copy of this software and associated documentation files (the "Software"),
6e15c8f4bSDaniel Vetter  * to deal in the Software without restriction, including without limitation
7e15c8f4bSDaniel Vetter  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8e15c8f4bSDaniel Vetter  * and/or sell copies of the Software, and to permit persons to whom the
9e15c8f4bSDaniel Vetter  * Software is furnished to do so, subject to the following conditions:
10e15c8f4bSDaniel Vetter  *
11e15c8f4bSDaniel Vetter  * The above copyright notice and this permission notice shall be included in
12e15c8f4bSDaniel Vetter  * all copies or substantial portions of the Software.
13e15c8f4bSDaniel Vetter  *
14e15c8f4bSDaniel Vetter  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15e15c8f4bSDaniel Vetter  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16e15c8f4bSDaniel Vetter  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17e15c8f4bSDaniel Vetter  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18e15c8f4bSDaniel Vetter  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19e15c8f4bSDaniel Vetter  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20e15c8f4bSDaniel Vetter  * OTHER DEALINGS IN THE SOFTWARE.
21e15c8f4bSDaniel Vetter  */
22e15c8f4bSDaniel Vetter 
23e15c8f4bSDaniel Vetter /*
24e15c8f4bSDaniel Vetter  * This header file contains mode setting related functions and definitions
25e15c8f4bSDaniel Vetter  * which are only used within the drm kms helper module as internal
26e15c8f4bSDaniel Vetter  * implementation details and are not exported to drivers.
27e15c8f4bSDaniel Vetter  */
28e15c8f4bSDaniel Vetter 
29e15c8f4bSDaniel Vetter #include <drm/drm_dp_helper.h>
30e15c8f4bSDaniel Vetter 
31e15c8f4bSDaniel Vetter /* drm_fb_helper.c */
32*699fbeeaSVille Syrjälä #ifdef CONFIG_DRM_FBDEV_EMULATION
33e15c8f4bSDaniel Vetter int drm_fb_helper_modinit(void);
34*699fbeeaSVille Syrjälä #else
35*699fbeeaSVille Syrjälä static inline int drm_fb_helper_modinit(void)
36*699fbeeaSVille Syrjälä {
37*699fbeeaSVille Syrjälä 	return 0;
38*699fbeeaSVille Syrjälä }
39*699fbeeaSVille Syrjälä #endif
40e15c8f4bSDaniel Vetter 
41e15c8f4bSDaniel Vetter /* drm_dp_aux_dev.c */
42e15c8f4bSDaniel Vetter #ifdef CONFIG_DRM_DP_AUX_CHARDEV
43e15c8f4bSDaniel Vetter int drm_dp_aux_dev_init(void);
44e15c8f4bSDaniel Vetter void drm_dp_aux_dev_exit(void);
45e15c8f4bSDaniel Vetter int drm_dp_aux_register_devnode(struct drm_dp_aux *aux);
46e15c8f4bSDaniel Vetter void drm_dp_aux_unregister_devnode(struct drm_dp_aux *aux);
47e15c8f4bSDaniel Vetter #else
48e15c8f4bSDaniel Vetter static inline int drm_dp_aux_dev_init(void)
49e15c8f4bSDaniel Vetter {
50e15c8f4bSDaniel Vetter 	return 0;
51e15c8f4bSDaniel Vetter }
52e15c8f4bSDaniel Vetter 
53e15c8f4bSDaniel Vetter static inline void drm_dp_aux_dev_exit(void)
54e15c8f4bSDaniel Vetter {
55e15c8f4bSDaniel Vetter }
56e15c8f4bSDaniel Vetter 
57e15c8f4bSDaniel Vetter static inline int drm_dp_aux_register_devnode(struct drm_dp_aux *aux)
58e15c8f4bSDaniel Vetter {
59e15c8f4bSDaniel Vetter 	return 0;
60e15c8f4bSDaniel Vetter }
61e15c8f4bSDaniel Vetter 
62e15c8f4bSDaniel Vetter static inline void drm_dp_aux_unregister_devnode(struct drm_dp_aux *aux)
63e15c8f4bSDaniel Vetter {
64e15c8f4bSDaniel Vetter }
65e15c8f4bSDaniel Vetter #endif
66