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