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