Path: blob/master/drivers/gpu/drm/amd/display/dc/dc_plane.h
26535 views
/*1* Copyright 2023 Advanced Micro Devices, Inc.2*3* Permission is hereby granted, free of charge, to any person obtaining a4* copy of this software and associated documentation files (the "Software"),5* to deal in the Software without restriction, including without limitation6* the rights to use, copy, modify, merge, publish, distribute, sublicense,7* and/or sell copies of the Software, and to permit persons to whom the8* Software is furnished to do so, subject to the following conditions:9*10* The above copyright notice and this permission notice shall be included in11* all copies or substantial portions of the Software.12*13* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL16* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR17* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,18* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR19* OTHER DEALINGS IN THE SOFTWARE.20*21* Authors: AMD22*23*/2425#ifndef _DC_PLANE_H_26#define _DC_PLANE_H_2728#include "dc_hw_types.h"2930union dc_plane_status_update_flags {31struct {32uint32_t address : 1;33} bits;34uint32_t raw;35};3637struct dc_plane_state *dc_create_plane_state(const struct dc *dc);38const struct dc_plane_status *dc_plane_get_status(39const struct dc_plane_state *plane_state,40union dc_plane_status_update_flags flags);41void dc_plane_state_retain(struct dc_plane_state *plane_state);42void dc_plane_state_release(struct dc_plane_state *plane_state);4344void dc_plane_force_dcc_and_tiling_disable(struct dc_plane_state *plane_state,45bool clear_tiling);464748void dc_plane_copy_config(struct dc_plane_state *dst, const struct dc_plane_state *src);4950#endif /* _DC_PLANE_H_ */515253