Home | History | Annotate | Line # | Download | only in drm
drm_atomic_uapi.h revision 1.2
      1 /*	$NetBSD: drm_atomic_uapi.h,v 1.2 2021/12/18 23:45:45 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 (at) gmail.com>
     28  * Daniel Vetter <daniel.vetter (at) ffwll.ch>
     29  */
     30 
     31 #ifndef DRM_ATOMIC_UAPI_H_
     32 #define DRM_ATOMIC_UAPI_H_
     33 
     34 struct drm_crtc_state;
     35 struct drm_display_mode;
     36 struct drm_property_blob;
     37 struct drm_plane_state;
     38 struct drm_crtc;
     39 struct drm_connector_state;
     40 struct dma_fence;
     41 struct drm_framebuffer;
     42 
     43 int __must_check
     44 drm_atomic_set_mode_for_crtc(struct drm_crtc_state *state,
     45 			     const struct drm_display_mode *mode);
     46 int __must_check
     47 drm_atomic_set_mode_prop_for_crtc(struct drm_crtc_state *state,
     48 				  struct drm_property_blob *blob);
     49 int __must_check
     50 drm_atomic_set_crtc_for_plane(struct drm_plane_state *plane_state,
     51 			      struct drm_crtc *crtc);
     52 void drm_atomic_set_fb_for_plane(struct drm_plane_state *plane_state,
     53 				 struct drm_framebuffer *fb);
     54 void drm_atomic_set_fence_for_plane(struct drm_plane_state *plane_state,
     55 				    struct dma_fence *fence);
     56 int __must_check
     57 drm_atomic_set_crtc_for_connector(struct drm_connector_state *conn_state,
     58 				  struct drm_crtc *crtc);
     59 
     60 #endif
     61