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