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