1 /* $NetBSD: drm_atomic_uapi.h,v 1.3 2021/12/19 01:58:25 riastradh Exp $ */ 2 3 /* 4 * Copyright (C) 2014 Red Hat 5 * Copyright (C) 2014 Intel Corp. 6 * Copyright (C) 2018 Intel Corp. 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a 9 * copy of this software and associated documentation files (the "Software"), 10 * to deal in the Software without restriction, including without limitation 11 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 12 * and/or sell copies of the Software, and to permit persons to whom the 13 * Software is furnished to do so, subject to the following conditions: 14 * 15 * The above copyright notice and this permission notice shall be included in 16 * all copies or substantial portions of the Software. 17 * 18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 21 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 22 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 23 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 24 * OTHER DEALINGS IN THE SOFTWARE. 25 * 26 * Authors: 27 * Rob Clark <robdclark@gmail.com> 28 * Daniel Vetter <daniel.vetter@ffwll.ch> 29 */ 30 31 #ifndef DRM_ATOMIC_UAPI_H_ 32 #define DRM_ATOMIC_UAPI_H_ 33 34 #include <linux/compiler.h> 35 36 struct drm_crtc_state; 37 struct drm_display_mode; 38 struct drm_property_blob; 39 struct drm_plane_state; 40 struct drm_crtc; 41 struct drm_connector_state; 42 struct dma_fence; 43 struct drm_framebuffer; 44 45 int __must_check 46 drm_atomic_set_mode_for_crtc(struct drm_crtc_state *state, 47 const struct drm_display_mode *mode); 48 int __must_check 49 drm_atomic_set_mode_prop_for_crtc(struct drm_crtc_state *state, 50 struct drm_property_blob *blob); 51 int __must_check 52 drm_atomic_set_crtc_for_plane(struct drm_plane_state *plane_state, 53 struct drm_crtc *crtc); 54 void drm_atomic_set_fb_for_plane(struct drm_plane_state *plane_state, 55 struct drm_framebuffer *fb); 56 void drm_atomic_set_fence_for_plane(struct drm_plane_state *plane_state, 57 struct dma_fence *fence); 58 int __must_check 59 drm_atomic_set_crtc_for_connector(struct drm_connector_state *conn_state, 60 struct drm_crtc *crtc); 61 62 #endif 63