cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

drm_atomic_state_helper.h (4307B)


      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
     29struct drm_bridge;
     30struct drm_bridge_state;
     31struct drm_crtc;
     32struct drm_crtc_state;
     33struct drm_plane;
     34struct drm_plane_state;
     35struct drm_connector;
     36struct drm_connector_state;
     37struct drm_private_obj;
     38struct drm_private_state;
     39struct drm_modeset_acquire_ctx;
     40struct drm_device;
     41
     42void __drm_atomic_helper_crtc_state_reset(struct drm_crtc_state *state,
     43					  struct drm_crtc *crtc);
     44void __drm_atomic_helper_crtc_reset(struct drm_crtc *crtc,
     45				    struct drm_crtc_state *state);
     46void drm_atomic_helper_crtc_reset(struct drm_crtc *crtc);
     47void __drm_atomic_helper_crtc_duplicate_state(struct drm_crtc *crtc,
     48					      struct drm_crtc_state *state);
     49struct drm_crtc_state *
     50drm_atomic_helper_crtc_duplicate_state(struct drm_crtc *crtc);
     51void __drm_atomic_helper_crtc_destroy_state(struct drm_crtc_state *state);
     52void drm_atomic_helper_crtc_destroy_state(struct drm_crtc *crtc,
     53					  struct drm_crtc_state *state);
     54
     55void __drm_atomic_helper_plane_state_reset(struct drm_plane_state *state,
     56					   struct drm_plane *plane);
     57void __drm_atomic_helper_plane_reset(struct drm_plane *plane,
     58				     struct drm_plane_state *state);
     59void drm_atomic_helper_plane_reset(struct drm_plane *plane);
     60void __drm_atomic_helper_plane_duplicate_state(struct drm_plane *plane,
     61					       struct drm_plane_state *state);
     62struct drm_plane_state *
     63drm_atomic_helper_plane_duplicate_state(struct drm_plane *plane);
     64void __drm_atomic_helper_plane_destroy_state(struct drm_plane_state *state);
     65void drm_atomic_helper_plane_destroy_state(struct drm_plane *plane,
     66					  struct drm_plane_state *state);
     67
     68void __drm_atomic_helper_connector_state_reset(struct drm_connector_state *conn_state,
     69					       struct drm_connector *connector);
     70void __drm_atomic_helper_connector_reset(struct drm_connector *connector,
     71					 struct drm_connector_state *conn_state);
     72void drm_atomic_helper_connector_reset(struct drm_connector *connector);
     73void drm_atomic_helper_connector_tv_reset(struct drm_connector *connector);
     74void
     75__drm_atomic_helper_connector_duplicate_state(struct drm_connector *connector,
     76					   struct drm_connector_state *state);
     77struct drm_connector_state *
     78drm_atomic_helper_connector_duplicate_state(struct drm_connector *connector);
     79void
     80__drm_atomic_helper_connector_destroy_state(struct drm_connector_state *state);
     81void drm_atomic_helper_connector_destroy_state(struct drm_connector *connector,
     82					  struct drm_connector_state *state);
     83void __drm_atomic_helper_private_obj_duplicate_state(struct drm_private_obj *obj,
     84						     struct drm_private_state *state);
     85
     86void __drm_atomic_helper_bridge_duplicate_state(struct drm_bridge *bridge,
     87						struct drm_bridge_state *state);
     88struct drm_bridge_state *
     89drm_atomic_helper_bridge_duplicate_state(struct drm_bridge *bridge);
     90void drm_atomic_helper_bridge_destroy_state(struct drm_bridge *bridge,
     91					    struct drm_bridge_state *state);
     92void __drm_atomic_helper_bridge_reset(struct drm_bridge *bridge,
     93				      struct drm_bridge_state *state);
     94struct drm_bridge_state *
     95drm_atomic_helper_bridge_reset(struct drm_bridge *bridge);