![]() |
|
|||
0001 /* 0002 * Copyright © 2006 Keith Packard 0003 * Copyright © 2007-2008 Dave Airlie 0004 * Copyright © 2007-2008 Intel Corporation 0005 * Jesse Barnes <jesse.barnes@intel.com> 0006 * 0007 * Permission is hereby granted, free of charge, to any person obtaining a 0008 * copy of this software and associated documentation files (the "Software"), 0009 * to deal in the Software without restriction, including without limitation 0010 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 0011 * and/or sell copies of the Software, and to permit persons to whom the 0012 * Software is furnished to do so, subject to the following conditions: 0013 * 0014 * The above copyright notice and this permission notice shall be included in 0015 * all copies or substantial portions of the Software. 0016 * 0017 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 0018 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 0019 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 0020 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 0021 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 0022 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 0023 * OTHER DEALINGS IN THE SOFTWARE. 0024 */ 0025 0026 /* 0027 * The DRM mode setting helper functions are common code for drivers to use if 0028 * they wish. Drivers are not forced to use this code in their 0029 * implementations but it would be useful if they code they do use at least 0030 * provides a consistent interface and operation to userspace 0031 */ 0032 0033 #ifndef __DRM_CRTC_HELPER_H__ 0034 #define __DRM_CRTC_HELPER_H__ 0035 0036 #include <linux/spinlock.h> 0037 #include <linux/types.h> 0038 #include <linux/idr.h> 0039 0040 #include <linux/fb.h> 0041 0042 #include <drm/drm_crtc.h> 0043 #include <drm/drm_modeset_helper_vtables.h> 0044 #include <drm/drm_modeset_helper.h> 0045 0046 void drm_helper_disable_unused_functions(struct drm_device *dev); 0047 int drm_crtc_helper_set_config(struct drm_mode_set *set, 0048 struct drm_modeset_acquire_ctx *ctx); 0049 bool drm_crtc_helper_set_mode(struct drm_crtc *crtc, 0050 struct drm_display_mode *mode, 0051 int x, int y, 0052 struct drm_framebuffer *old_fb); 0053 bool drm_helper_crtc_in_use(struct drm_crtc *crtc); 0054 bool drm_helper_encoder_in_use(struct drm_encoder *encoder); 0055 0056 int drm_helper_connector_dpms(struct drm_connector *connector, int mode); 0057 0058 void drm_helper_resume_force_mode(struct drm_device *dev); 0059 int drm_helper_force_disable_all(struct drm_device *dev); 0060 0061 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |