18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright (C) 2018 Intel Corp. 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a 58c2ecf20Sopenharmony_ci * copy of this software and associated documentation files (the "Software"), 68c2ecf20Sopenharmony_ci * to deal in the Software without restriction, including without limitation 78c2ecf20Sopenharmony_ci * the rights to use, copy, modify, merge, publish, distribute, sublicense, 88c2ecf20Sopenharmony_ci * and/or sell copies of the Software, and to permit persons to whom the 98c2ecf20Sopenharmony_ci * Software is furnished to do so, subject to the following conditions: 108c2ecf20Sopenharmony_ci * 118c2ecf20Sopenharmony_ci * The above copyright notice and this permission notice shall be included in 128c2ecf20Sopenharmony_ci * all copies or substantial portions of the Software. 138c2ecf20Sopenharmony_ci * 148c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 158c2ecf20Sopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 168c2ecf20Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 178c2ecf20Sopenharmony_ci * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 188c2ecf20Sopenharmony_ci * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 198c2ecf20Sopenharmony_ci * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 208c2ecf20Sopenharmony_ci * OTHER DEALINGS IN THE SOFTWARE. 218c2ecf20Sopenharmony_ci * 228c2ecf20Sopenharmony_ci * Authors: 238c2ecf20Sopenharmony_ci * Rob Clark <robdclark@gmail.com> 248c2ecf20Sopenharmony_ci * Daniel Vetter <daniel.vetter@ffwll.ch> 258c2ecf20Sopenharmony_ci */ 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci#include <linux/types.h> 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_cistruct drm_bridge; 308c2ecf20Sopenharmony_cistruct drm_bridge_state; 318c2ecf20Sopenharmony_cistruct drm_crtc; 328c2ecf20Sopenharmony_cistruct drm_crtc_state; 338c2ecf20Sopenharmony_cistruct drm_plane; 348c2ecf20Sopenharmony_cistruct drm_plane_state; 358c2ecf20Sopenharmony_cistruct drm_connector; 368c2ecf20Sopenharmony_cistruct drm_connector_state; 378c2ecf20Sopenharmony_cistruct drm_private_obj; 388c2ecf20Sopenharmony_cistruct drm_private_state; 398c2ecf20Sopenharmony_cistruct drm_modeset_acquire_ctx; 408c2ecf20Sopenharmony_cistruct drm_device; 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_civoid __drm_atomic_helper_crtc_state_reset(struct drm_crtc_state *state, 438c2ecf20Sopenharmony_ci struct drm_crtc *crtc); 448c2ecf20Sopenharmony_civoid __drm_atomic_helper_crtc_reset(struct drm_crtc *crtc, 458c2ecf20Sopenharmony_ci struct drm_crtc_state *state); 468c2ecf20Sopenharmony_civoid drm_atomic_helper_crtc_reset(struct drm_crtc *crtc); 478c2ecf20Sopenharmony_civoid __drm_atomic_helper_crtc_duplicate_state(struct drm_crtc *crtc, 488c2ecf20Sopenharmony_ci struct drm_crtc_state *state); 498c2ecf20Sopenharmony_cistruct drm_crtc_state * 508c2ecf20Sopenharmony_cidrm_atomic_helper_crtc_duplicate_state(struct drm_crtc *crtc); 518c2ecf20Sopenharmony_civoid __drm_atomic_helper_crtc_destroy_state(struct drm_crtc_state *state); 528c2ecf20Sopenharmony_civoid drm_atomic_helper_crtc_destroy_state(struct drm_crtc *crtc, 538c2ecf20Sopenharmony_ci struct drm_crtc_state *state); 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_civoid __drm_atomic_helper_plane_state_reset(struct drm_plane_state *state, 568c2ecf20Sopenharmony_ci struct drm_plane *plane); 578c2ecf20Sopenharmony_civoid __drm_atomic_helper_plane_reset(struct drm_plane *plane, 588c2ecf20Sopenharmony_ci struct drm_plane_state *state); 598c2ecf20Sopenharmony_civoid drm_atomic_helper_plane_reset(struct drm_plane *plane); 608c2ecf20Sopenharmony_civoid __drm_atomic_helper_plane_duplicate_state(struct drm_plane *plane, 618c2ecf20Sopenharmony_ci struct drm_plane_state *state); 628c2ecf20Sopenharmony_cistruct drm_plane_state * 638c2ecf20Sopenharmony_cidrm_atomic_helper_plane_duplicate_state(struct drm_plane *plane); 648c2ecf20Sopenharmony_civoid __drm_atomic_helper_plane_destroy_state(struct drm_plane_state *state); 658c2ecf20Sopenharmony_civoid drm_atomic_helper_plane_destroy_state(struct drm_plane *plane, 668c2ecf20Sopenharmony_ci struct drm_plane_state *state); 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_civoid __drm_atomic_helper_connector_state_reset(struct drm_connector_state *conn_state, 698c2ecf20Sopenharmony_ci struct drm_connector *connector); 708c2ecf20Sopenharmony_civoid __drm_atomic_helper_connector_reset(struct drm_connector *connector, 718c2ecf20Sopenharmony_ci struct drm_connector_state *conn_state); 728c2ecf20Sopenharmony_civoid drm_atomic_helper_connector_reset(struct drm_connector *connector); 738c2ecf20Sopenharmony_civoid drm_atomic_helper_connector_tv_reset(struct drm_connector *connector); 748c2ecf20Sopenharmony_civoid 758c2ecf20Sopenharmony_ci__drm_atomic_helper_connector_duplicate_state(struct drm_connector *connector, 768c2ecf20Sopenharmony_ci struct drm_connector_state *state); 778c2ecf20Sopenharmony_cistruct drm_connector_state * 788c2ecf20Sopenharmony_cidrm_atomic_helper_connector_duplicate_state(struct drm_connector *connector); 798c2ecf20Sopenharmony_civoid 808c2ecf20Sopenharmony_ci__drm_atomic_helper_connector_destroy_state(struct drm_connector_state *state); 818c2ecf20Sopenharmony_civoid drm_atomic_helper_connector_destroy_state(struct drm_connector *connector, 828c2ecf20Sopenharmony_ci struct drm_connector_state *state); 838c2ecf20Sopenharmony_civoid __drm_atomic_helper_private_obj_duplicate_state(struct drm_private_obj *obj, 848c2ecf20Sopenharmony_ci struct drm_private_state *state); 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_civoid __drm_atomic_helper_bridge_duplicate_state(struct drm_bridge *bridge, 878c2ecf20Sopenharmony_ci struct drm_bridge_state *state); 888c2ecf20Sopenharmony_cistruct drm_bridge_state * 898c2ecf20Sopenharmony_cidrm_atomic_helper_bridge_duplicate_state(struct drm_bridge *bridge); 908c2ecf20Sopenharmony_civoid drm_atomic_helper_bridge_destroy_state(struct drm_bridge *bridge, 918c2ecf20Sopenharmony_ci struct drm_bridge_state *state); 928c2ecf20Sopenharmony_civoid __drm_atomic_helper_bridge_reset(struct drm_bridge *bridge, 938c2ecf20Sopenharmony_ci struct drm_bridge_state *state); 948c2ecf20Sopenharmony_cistruct drm_bridge_state * 958c2ecf20Sopenharmony_cidrm_atomic_helper_bridge_reset(struct drm_bridge *bridge); 96