1 /* 2 * Copyright (C) 2018 Intel Corp. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the 9 * Software is furnished to do so, subject to the following conditions: 10 * 11 * The above copyright notice and this permission notice shall be included in 12 * all copies or substantial portions of the Software. 13 * 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 * OTHER DEALINGS IN THE SOFTWARE. 21 * 22 * Authors: 23 * Rob Clark <robdclark@gmail.com> 24 * Daniel Vetter <daniel.vetter@ffwll.ch> 25 */ 26 27 #include <linux/types.h> 28 29 struct drm_crtc; 30 struct drm_crtc_state; 31 struct drm_plane; 32 struct drm_plane_state; 33 struct drm_connector; 34 struct drm_connector_state; 35 struct drm_private_obj; 36 struct drm_private_state; 37 struct drm_modeset_acquire_ctx; 38 struct drm_device; 39 40 void __drm_atomic_helper_crtc_reset(struct drm_crtc *crtc, 41 struct drm_crtc_state *state); 42 void drm_atomic_helper_crtc_reset(struct drm_crtc *crtc); 43 void __drm_atomic_helper_crtc_duplicate_state(struct drm_crtc *crtc, 44 struct drm_crtc_state *state); 45 struct drm_crtc_state * 46 drm_atomic_helper_crtc_duplicate_state(struct drm_crtc *crtc); 47 void __drm_atomic_helper_crtc_destroy_state(struct drm_crtc_state *state); 48 void drm_atomic_helper_crtc_destroy_state(struct drm_crtc *crtc, 49 struct drm_crtc_state *state); 50 51 void __drm_atomic_helper_plane_reset(struct drm_plane *plane, 52 struct drm_plane_state *state); 53 void drm_atomic_helper_plane_reset(struct drm_plane *plane); 54 void __drm_atomic_helper_plane_duplicate_state(struct drm_plane *plane, 55 struct drm_plane_state *state); 56 struct drm_plane_state * 57 drm_atomic_helper_plane_duplicate_state(struct drm_plane *plane); 58 void __drm_atomic_helper_plane_destroy_state(struct drm_plane_state *state); 59 void drm_atomic_helper_plane_destroy_state(struct drm_plane *plane, 60 struct drm_plane_state *state); 61 62 void __drm_atomic_helper_connector_reset(struct drm_connector *connector, 63 struct drm_connector_state *conn_state); 64 void drm_atomic_helper_connector_reset(struct drm_connector *connector); 65 void drm_atomic_helper_connector_tv_reset(struct drm_connector *connector); 66 void 67 __drm_atomic_helper_connector_duplicate_state(struct drm_connector *connector, 68 struct drm_connector_state *state); 69 struct drm_connector_state * 70 drm_atomic_helper_connector_duplicate_state(struct drm_connector *connector); 71 void 72 __drm_atomic_helper_connector_destroy_state(struct drm_connector_state *state); 73 void drm_atomic_helper_connector_destroy_state(struct drm_connector *connector, 74 struct drm_connector_state *state); 75 void __drm_atomic_helper_private_obj_duplicate_state(struct drm_private_obj *obj, 76 struct drm_private_state *state); 77