/* * Copyright 2015 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. * * Authors: AMD * */ /* DC interface (public) */ #include "dm_services.h" #include "dc.h" /* DC core (private) */ #include "core_types.h" #include "transform.h" #include "dpp.h" #include "dc_plane_priv.h" /******************************************************************************* * Private functions ******************************************************************************/ void dc_plane_construct(struct dc_context *ctx, struct dc_plane_state *plane_state) { … } void dc_plane_destruct(struct dc_plane_state *plane_state) { … } /* dc_state is passed in separately since it may differ from the current dc state accessible from plane_state e.g. * if the driver is doing an update from an old context to a new one and the caller wants the pipe mask for the new * context rather than the existing one */ uint8_t dc_plane_get_pipe_mask(struct dc_state *dc_state, const struct dc_plane_state *plane_state) { … } /******************************************************************************* * Public functions ******************************************************************************/ void enable_surface_flip_reporting(struct dc_plane_state *plane_state, uint32_t controller_id) { … } struct dc_plane_state *dc_create_plane_state(const struct dc *dc) { … } /* ***************************************************************************** * Function: dc_plane_get_status * * @brief * Looks up the pipe context of plane_state and updates the pending status * of the pipe context. Then returns plane_state->status * * @param [in] plane_state: pointer to the plane_state to get the status of ***************************************************************************** */ const struct dc_plane_status *dc_plane_get_status( const struct dc_plane_state *plane_state) { … } void dc_plane_state_retain(struct dc_plane_state *plane_state) { … } static void dc_plane_state_free(struct kref *kref) { … } void dc_plane_state_release(struct dc_plane_state *plane_state) { … } void dc_gamma_retain(struct dc_gamma *gamma) { … } static void dc_gamma_free(struct kref *kref) { … } void dc_gamma_release(struct dc_gamma **gamma) { … } struct dc_gamma *dc_create_gamma(void) { … } void dc_transfer_func_retain(struct dc_transfer_func *tf) { … } static void dc_transfer_func_free(struct kref *kref) { … } void dc_transfer_func_release(struct dc_transfer_func *tf) { … } struct dc_transfer_func *dc_create_transfer_func(void) { … } static void dc_3dlut_func_free(struct kref *kref) { … } struct dc_3dlut *dc_create_3dlut_func(void) { … } void dc_3dlut_func_release(struct dc_3dlut *lut) { … } void dc_3dlut_func_retain(struct dc_3dlut *lut) { … }