18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright (C) 2014 Red Hat 38c2ecf20Sopenharmony_ci * Copyright (C) 2014 Intel Corp. 48c2ecf20Sopenharmony_ci * Copyright (C) 2018 Intel Corp. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a 78c2ecf20Sopenharmony_ci * copy of this software and associated documentation files (the "Software"), 88c2ecf20Sopenharmony_ci * to deal in the Software without restriction, including without limitation 98c2ecf20Sopenharmony_ci * the rights to use, copy, modify, merge, publish, distribute, sublicense, 108c2ecf20Sopenharmony_ci * and/or sell copies of the Software, and to permit persons to whom the 118c2ecf20Sopenharmony_ci * Software is furnished to do so, subject to the following conditions: 128c2ecf20Sopenharmony_ci * 138c2ecf20Sopenharmony_ci * The above copyright notice and this permission notice shall be included in 148c2ecf20Sopenharmony_ci * all copies or substantial portions of the Software. 158c2ecf20Sopenharmony_ci * 168c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 178c2ecf20Sopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 188c2ecf20Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 198c2ecf20Sopenharmony_ci * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 208c2ecf20Sopenharmony_ci * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 218c2ecf20Sopenharmony_ci * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 228c2ecf20Sopenharmony_ci * OTHER DEALINGS IN THE SOFTWARE. 238c2ecf20Sopenharmony_ci * 248c2ecf20Sopenharmony_ci * Authors: 258c2ecf20Sopenharmony_ci * Rob Clark <robdclark@gmail.com> 268c2ecf20Sopenharmony_ci * Daniel Vetter <daniel.vetter@ffwll.ch> 278c2ecf20Sopenharmony_ci */ 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci#ifndef DRM_ATOMIC_UAPI_H_ 308c2ecf20Sopenharmony_ci#define DRM_ATOMIC_UAPI_H_ 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_cistruct drm_crtc_state; 338c2ecf20Sopenharmony_cistruct drm_display_mode; 348c2ecf20Sopenharmony_cistruct drm_property_blob; 358c2ecf20Sopenharmony_cistruct drm_plane_state; 368c2ecf20Sopenharmony_cistruct drm_crtc; 378c2ecf20Sopenharmony_cistruct drm_connector_state; 388c2ecf20Sopenharmony_cistruct dma_fence; 398c2ecf20Sopenharmony_cistruct drm_framebuffer; 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ciint __must_check 428c2ecf20Sopenharmony_cidrm_atomic_set_mode_for_crtc(struct drm_crtc_state *state, 438c2ecf20Sopenharmony_ci const struct drm_display_mode *mode); 448c2ecf20Sopenharmony_ciint __must_check 458c2ecf20Sopenharmony_cidrm_atomic_set_mode_prop_for_crtc(struct drm_crtc_state *state, 468c2ecf20Sopenharmony_ci struct drm_property_blob *blob); 478c2ecf20Sopenharmony_ciint __must_check 488c2ecf20Sopenharmony_cidrm_atomic_set_crtc_for_plane(struct drm_plane_state *plane_state, 498c2ecf20Sopenharmony_ci struct drm_crtc *crtc); 508c2ecf20Sopenharmony_civoid drm_atomic_set_fb_for_plane(struct drm_plane_state *plane_state, 518c2ecf20Sopenharmony_ci struct drm_framebuffer *fb); 528c2ecf20Sopenharmony_civoid drm_atomic_set_fence_for_plane(struct drm_plane_state *plane_state, 538c2ecf20Sopenharmony_ci struct dma_fence *fence); 548c2ecf20Sopenharmony_ciint __must_check 558c2ecf20Sopenharmony_cidrm_atomic_set_crtc_for_connector(struct drm_connector_state *conn_state, 568c2ecf20Sopenharmony_ci struct drm_crtc *crtc); 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci#endif 59