| 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 <[email protected]>
|
| 24 | * Daniel Vetter <[email protected]>
|
| 25 |
|
| 26 |
|
| 27 | #include <linux/types.h>
|
| 28 |
|
| 29 | struct drm_atomic_commit;
|
| 30 | struct drm_bridge;
|
| 31 | struct drm_bridge_state;
|
| 32 | struct drm_crtc;
|
| 33 | struct drm_crtc_state;
|
| 34 | struct drm_plane;
|
| 35 | struct drm_plane_state;
|
| 36 | struct drm_connector;
|
| 37 | struct drm_connector_state;
|
| 38 | struct drm_private_obj;
|
| 39 | struct drm_private_state;
|
| 40 | struct drm_modeset_acquire_ctx;
|
| 41 | struct drm_device;
|
| 42 |
|
| 43 | void __drm_atomic_helper_crtc_state_init(struct drm_crtc_state *state,
|
| 44 | struct drm_crtc *crtc);
|
| 45 | void __drm_atomic_helper_crtc_reset(struct drm_crtc *crtc,
|
| 46 | struct drm_crtc_state *state);
|
| 47 | void drm_atomic_helper_crtc_reset(struct drm_crtc *crtc);
|
| 48 | struct drm_crtc_state *
|
| 49 | drm_atomic_helper_crtc_create_state(struct drm_crtc *crtc);
|
| 50 | void __drm_atomic_helper_crtc_duplicate_state(struct drm_crtc *crtc,
|
| 51 | struct drm_crtc_state *state);
|
| 52 | struct drm_crtc_state *
|
| 53 | drm_atomic_helper_crtc_duplicate_state(struct drm_crtc *crtc);
|
| 54 | void __drm_atomic_helper_crtc_destroy_state(struct drm_crtc_state *state);
|
| 55 | void drm_atomic_helper_crtc_destroy_state(struct drm_crtc *crtc,
|
| 56 | struct drm_crtc_state *state);
|
| 57 |
|
| 58 | void __drm_atomic_helper_plane_state_init(struct drm_plane_state *state,
|
| 59 | struct drm_plane *plane);
|
| 60 | struct drm_plane_state *
|
| 61 | drm_atomic_helper_plane_create_state(struct drm_plane *plane);
|
| 62 | void __drm_atomic_helper_plane_reset(struct drm_plane *plane,
|
| 63 | struct drm_plane_state *state);
|
| 64 | void drm_atomic_helper_plane_reset(struct drm_plane *plane);
|
| 65 | void __drm_atomic_helper_plane_duplicate_state(struct drm_plane *plane,
|
| 66 | struct drm_plane_state *state);
|
| 67 | struct drm_plane_state *
|
| 68 | drm_atomic_helper_plane_duplicate_state(struct drm_plane *plane);
|
| 69 | void __drm_atomic_helper_plane_destroy_state(struct drm_plane_state *state);
|
| 70 | void drm_atomic_helper_plane_destroy_state(struct drm_plane *plane,
|
| 71 | struct drm_plane_state *state);
|
| 72 |
|
| 73 | void __drm_atomic_helper_connector_state_init(struct drm_connector_state *conn_state,
|
| 74 | struct drm_connector *connector);
|
| 75 | void __drm_atomic_helper_connector_reset(struct drm_connector *connector,
|
| 76 | struct drm_connector_state *conn_state);
|
| 77 | void drm_atomic_helper_connector_reset(struct drm_connector *connector);
|
| 78 | struct drm_connector_state *
|
| 79 | drm_atomic_helper_connector_create_state(struct drm_connector *connector);
|
| 80 | void drm_atomic_helper_connector_tv_reset(struct drm_connector *connector);
|
| 81 | int drm_atomic_helper_connector_tv_check(struct drm_connector *connector,
|
| 82 | struct drm_atomic_commit *state);
|
| 83 | void drm_atomic_helper_connector_tv_margins_reset(struct drm_connector *connector);
|
| 84 | void
|
| 85 | __drm_atomic_helper_connector_duplicate_state(struct drm_connector *connector,
|
| 86 | struct drm_connector_state *state);
|
| 87 | struct drm_connector_state *
|
| 88 | drm_atomic_helper_connector_duplicate_state(struct drm_connector *connector);
|
| 89 | void
|
| 90 | __drm_atomic_helper_connector_destroy_state(struct drm_connector_state *state);
|
| 91 | void drm_atomic_helper_connector_destroy_state(struct drm_connector *connector,
|
| 92 | struct drm_connector_state *state);
|
| 93 |
|
| 94 | void __drm_atomic_helper_private_obj_create_state(struct drm_private_obj *obj,
|
| 95 | struct drm_private_state *state);
|
| 96 | void __drm_atomic_helper_private_obj_duplicate_state(struct drm_private_obj *obj,
|
| 97 | struct drm_private_state *state);
|
| 98 |
|
| 99 | void __drm_atomic_helper_bridge_duplicate_state(struct drm_bridge *bridge,
|
| 100 | struct drm_bridge_state *state);
|
| 101 | struct drm_bridge_state *
|
| 102 | drm_atomic_helper_bridge_duplicate_state(struct drm_bridge *bridge);
|
| 103 | void drm_atomic_helper_bridge_destroy_state(struct drm_bridge *bridge,
|
| 104 | struct drm_bridge_state *state);
|
| 105 | void __drm_atomic_helper_bridge_state_init(struct drm_bridge_state *state,
|
| 106 | struct drm_bridge *bridge);
|
| 107 | struct drm_bridge_state *
|
| 108 | drm_atomic_helper_bridge_create_state(struct drm_bridge *bridge);
|