Path: blob/master/drivers/gpu/drm/drm_crtc_helper_internal.h
26444 views
/*1* Copyright © 2016 Intel Corporation2*3* Permission is hereby granted, free of charge, to any person obtaining a4* copy of this software and associated documentation files (the "Software"),5* to deal in the Software without restriction, including without limitation6* the rights to use, copy, modify, merge, publish, distribute, sublicense,7* and/or sell copies of the Software, and to permit persons to whom the8* Software is furnished to do so, subject to the following conditions:9*10* The above copyright notice and this permission notice shall be included in11* all copies or substantial portions of the Software.12*13* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL16* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR17* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,18* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR19* OTHER DEALINGS IN THE SOFTWARE.20*/2122/*23* This header file contains mode setting related functions and definitions24* which are only used within the drm kms helper module as internal25* implementation details and are not exported to drivers.26*/2728#ifndef __DRM_CRTC_HELPER_INTERNAL_H__29#define __DRM_CRTC_HELPER_INTERNAL_H__3031enum drm_mode_status;32struct drm_connector;33struct drm_crtc;34struct drm_display_mode;35struct drm_encoder;36struct drm_modeset_acquire_ctx;3738/* drm_probe_helper.c */39enum drm_mode_status drm_crtc_mode_valid(struct drm_crtc *crtc,40const struct drm_display_mode *mode);41enum drm_mode_status drm_encoder_mode_valid(struct drm_encoder *encoder,42const struct drm_display_mode *mode);43int44drm_connector_mode_valid(struct drm_connector *connector,45const struct drm_display_mode *mode,46struct drm_modeset_acquire_ctx *ctx,47enum drm_mode_status *status);4849struct drm_encoder *50drm_connector_get_single_encoder(struct drm_connector *connector);5152#endif /* __DRM_CRTC_HELPER_INTERNAL_H__ */535455