/* * Copyright 2017 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 * */ #ifndef _DCN10_IPP_H_ #define _DCN10_IPP_H_ #include "ipp.h" #define TO_DCN10_IPP(ipp) … #define IPP_REG_LIST_DCN(id) … #define IPP_REG_LIST_DCN10(id) … #define IPP_REG_LIST_DCN20(id) … #define IPP_REG_LIST_DCN201(id) … #define CURSOR0_CURSOR_CONTROL__CURSOR_2X_MAGNIFY__SHIFT … #define CURSOR0_CURSOR_CONTROL__CURSOR_2X_MAGNIFY_MASK … #define IPP_SF(reg_name, field_name, post_fix) … #define IPP_MASK_SH_LIST_DCN(mask_sh) … #define IPP_MASK_SH_LIST_DCN10(mask_sh) … #define IPP_MASK_SH_LIST_DCN20(mask_sh) … #define IPP_MASK_SH_LIST_DCN201(mask_sh) … #define IPP_DCN10_REG_FIELD_LIST(type) … struct dcn10_ipp_shift { … }; struct dcn10_ipp_mask { … }; struct dcn10_ipp_registers { … }; struct dcn10_ipp { … }; void dcn10_ipp_construct(struct dcn10_ipp *ippn10, struct dc_context *ctx, int inst, const struct dcn10_ipp_registers *regs, const struct dcn10_ipp_shift *ipp_shift, const struct dcn10_ipp_mask *ipp_mask); void dcn20_ipp_construct(struct dcn10_ipp *ippn10, struct dc_context *ctx, int inst, const struct dcn10_ipp_registers *regs, const struct dcn10_ipp_shift *ipp_shift, const struct dcn10_ipp_mask *ipp_mask); #endif /* _DCN10_IPP_H_ */