1 /* 2 * Copyright 2012-16 Advanced Micro Devices, Inc. 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: AMD 23 * 24 */ 25 26 27 #ifndef _DCE_ABM_H_ 28 #define _DCE_ABM_H_ 29 30 #include "abm.h" 31 32 #define ABM_COMMON_REG_LIST_DCE_BASE() \ 33 SR(MASTER_COMM_CNTL_REG), \ 34 SR(MASTER_COMM_CMD_REG), \ 35 SR(MASTER_COMM_DATA_REG1) 36 37 #define ABM_DCE110_COMMON_REG_LIST() \ 38 ABM_COMMON_REG_LIST_DCE_BASE(), \ 39 SR(DC_ABM1_HG_SAMPLE_RATE), \ 40 SR(DC_ABM1_LS_SAMPLE_RATE), \ 41 SR(BL1_PWM_BL_UPDATE_SAMPLE_RATE), \ 42 SR(DC_ABM1_HG_MISC_CTRL), \ 43 SR(DC_ABM1_IPCSC_COEFF_SEL), \ 44 SR(BL1_PWM_CURRENT_ABM_LEVEL), \ 45 SR(BL1_PWM_TARGET_ABM_LEVEL), \ 46 SR(BL1_PWM_USER_LEVEL), \ 47 SR(DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES), \ 48 SR(DC_ABM1_HGLS_REG_READ_PROGRESS), \ 49 SR(DC_ABM1_ACE_OFFSET_SLOPE_0), \ 50 SR(DC_ABM1_ACE_THRES_12), \ 51 SR(BIOS_SCRATCH_2) 52 53 #define ABM_DCN10_REG_LIST(id)\ 54 ABM_COMMON_REG_LIST_DCE_BASE(), \ 55 SRI(DC_ABM1_HG_SAMPLE_RATE, ABM, id), \ 56 SRI(DC_ABM1_LS_SAMPLE_RATE, ABM, id), \ 57 SRI(BL1_PWM_BL_UPDATE_SAMPLE_RATE, ABM, id), \ 58 SRI(DC_ABM1_HG_MISC_CTRL, ABM, id), \ 59 SRI(DC_ABM1_IPCSC_COEFF_SEL, ABM, id), \ 60 SRI(BL1_PWM_CURRENT_ABM_LEVEL, ABM, id), \ 61 SRI(BL1_PWM_TARGET_ABM_LEVEL, ABM, id), \ 62 SRI(BL1_PWM_USER_LEVEL, ABM, id), \ 63 SRI(DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES, ABM, id), \ 64 SRI(DC_ABM1_HGLS_REG_READ_PROGRESS, ABM, id), \ 65 SRI(DC_ABM1_ACE_OFFSET_SLOPE_0, ABM, id), \ 66 SRI(DC_ABM1_ACE_THRES_12, ABM, id), \ 67 NBIO_SR(BIOS_SCRATCH_2) 68 69 #define ABM_DCN20_REG_LIST() \ 70 ABM_COMMON_REG_LIST_DCE_BASE(), \ 71 SR(DC_ABM1_HG_SAMPLE_RATE), \ 72 SR(DC_ABM1_LS_SAMPLE_RATE), \ 73 SR(BL1_PWM_BL_UPDATE_SAMPLE_RATE), \ 74 SR(DC_ABM1_HG_MISC_CTRL), \ 75 SR(DC_ABM1_IPCSC_COEFF_SEL), \ 76 SR(BL1_PWM_CURRENT_ABM_LEVEL), \ 77 SR(BL1_PWM_TARGET_ABM_LEVEL), \ 78 SR(BL1_PWM_USER_LEVEL), \ 79 SR(DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES), \ 80 SR(DC_ABM1_HGLS_REG_READ_PROGRESS), \ 81 SR(DC_ABM1_ACE_OFFSET_SLOPE_0), \ 82 SR(DC_ABM1_ACE_THRES_12), \ 83 NBIO_SR(BIOS_SCRATCH_2) 84 85 #define ABM_DCN301_REG_LIST(id)\ 86 ABM_COMMON_REG_LIST_DCE_BASE(), \ 87 SRI(DC_ABM1_HG_SAMPLE_RATE, ABM, id), \ 88 SRI(DC_ABM1_LS_SAMPLE_RATE, ABM, id), \ 89 SRI(BL1_PWM_BL_UPDATE_SAMPLE_RATE, ABM, id), \ 90 SRI(DC_ABM1_HG_MISC_CTRL, ABM, id), \ 91 SRI(DC_ABM1_IPCSC_COEFF_SEL, ABM, id), \ 92 SRI(BL1_PWM_CURRENT_ABM_LEVEL, ABM, id), \ 93 SRI(BL1_PWM_TARGET_ABM_LEVEL, ABM, id), \ 94 SRI(BL1_PWM_USER_LEVEL, ABM, id), \ 95 SRI(DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES, ABM, id), \ 96 SRI(DC_ABM1_HGLS_REG_READ_PROGRESS, ABM, id), \ 97 NBIO_SR(BIOS_SCRATCH_2) 98 99 #define ABM_DCN302_REG_LIST(id)\ 100 ABM_COMMON_REG_LIST_DCE_BASE(), \ 101 SRI(DC_ABM1_HG_SAMPLE_RATE, ABM, id), \ 102 SRI(DC_ABM1_LS_SAMPLE_RATE, ABM, id), \ 103 SRI(BL1_PWM_BL_UPDATE_SAMPLE_RATE, ABM, id), \ 104 SRI(DC_ABM1_HG_MISC_CTRL, ABM, id), \ 105 SRI(DC_ABM1_IPCSC_COEFF_SEL, ABM, id), \ 106 SRI(BL1_PWM_CURRENT_ABM_LEVEL, ABM, id), \ 107 SRI(BL1_PWM_TARGET_ABM_LEVEL, ABM, id), \ 108 SRI(BL1_PWM_USER_LEVEL, ABM, id), \ 109 SRI(DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES, ABM, id), \ 110 SRI(DC_ABM1_HGLS_REG_READ_PROGRESS, ABM, id), \ 111 SRI(DC_ABM1_ACE_OFFSET_SLOPE_0, ABM, id), \ 112 SRI(DC_ABM1_ACE_THRES_12, ABM, id), \ 113 NBIO_SR(BIOS_SCRATCH_2) 114 115 #define ABM_DCN30_REG_LIST(id)\ 116 ABM_COMMON_REG_LIST_DCE_BASE(), \ 117 SRI(DC_ABM1_HG_SAMPLE_RATE, ABM, id), \ 118 SRI(DC_ABM1_LS_SAMPLE_RATE, ABM, id), \ 119 SRI(BL1_PWM_BL_UPDATE_SAMPLE_RATE, ABM, id), \ 120 SRI(DC_ABM1_HG_MISC_CTRL, ABM, id), \ 121 SRI(DC_ABM1_IPCSC_COEFF_SEL, ABM, id), \ 122 SRI(BL1_PWM_CURRENT_ABM_LEVEL, ABM, id), \ 123 SRI(BL1_PWM_TARGET_ABM_LEVEL, ABM, id), \ 124 SRI(BL1_PWM_USER_LEVEL, ABM, id), \ 125 SRI(DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES, ABM, id), \ 126 SRI(DC_ABM1_HGLS_REG_READ_PROGRESS, ABM, id), \ 127 SRI(DC_ABM1_ACE_OFFSET_SLOPE_0, ABM, id), \ 128 SRI(DC_ABM1_ACE_THRES_12, ABM, id), \ 129 NBIO_SR(BIOS_SCRATCH_2) 130 131 #define ABM_DCN32_REG_LIST(id)\ 132 SRI(DC_ABM1_HG_SAMPLE_RATE, ABM, id), \ 133 SRI(DC_ABM1_LS_SAMPLE_RATE, ABM, id), \ 134 SRI(BL1_PWM_BL_UPDATE_SAMPLE_RATE, ABM, id), \ 135 SRI(DC_ABM1_HG_MISC_CTRL, ABM, id), \ 136 SRI(DC_ABM1_IPCSC_COEFF_SEL, ABM, id), \ 137 SRI(BL1_PWM_CURRENT_ABM_LEVEL, ABM, id), \ 138 SRI(BL1_PWM_TARGET_ABM_LEVEL, ABM, id), \ 139 SRI(BL1_PWM_USER_LEVEL, ABM, id), \ 140 SRI(DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES, ABM, id), \ 141 SRI(DC_ABM1_HGLS_REG_READ_PROGRESS, ABM, id), \ 142 SRI(DC_ABM1_ACE_OFFSET_SLOPE_0, ABM, id), \ 143 SRI(DC_ABM1_ACE_THRES_12, ABM, id), \ 144 NBIO_SR(BIOS_SCRATCH_2) 145 146 #define ABM_SF(reg_name, field_name, post_fix)\ 147 .field_name = reg_name ## __ ## field_name ## post_fix 148 149 #define ABM_COMMON_MASK_SH_LIST_DCE_COMMON_BASE(mask_sh) \ 150 ABM_SF(MASTER_COMM_CNTL_REG, MASTER_COMM_INTERRUPT, mask_sh), \ 151 ABM_SF(MASTER_COMM_CMD_REG, MASTER_COMM_CMD_REG_BYTE0, mask_sh), \ 152 ABM_SF(MASTER_COMM_CMD_REG, MASTER_COMM_CMD_REG_BYTE1, mask_sh), \ 153 ABM_SF(MASTER_COMM_CMD_REG, MASTER_COMM_CMD_REG_BYTE2, mask_sh) 154 155 #define ABM_MASK_SH_LIST_DCE110(mask_sh) \ 156 ABM_COMMON_MASK_SH_LIST_DCE_COMMON_BASE(mask_sh), \ 157 ABM_SF(DC_ABM1_HG_MISC_CTRL, \ 158 ABM1_HG_NUM_OF_BINS_SEL, mask_sh), \ 159 ABM_SF(DC_ABM1_HG_MISC_CTRL, \ 160 ABM1_HG_VMAX_SEL, mask_sh), \ 161 ABM_SF(DC_ABM1_HG_MISC_CTRL, \ 162 ABM1_HG_BIN_BITWIDTH_SIZE_SEL, mask_sh), \ 163 ABM_SF(DC_ABM1_IPCSC_COEFF_SEL, \ 164 ABM1_IPCSC_COEFF_SEL_R, mask_sh), \ 165 ABM_SF(DC_ABM1_IPCSC_COEFF_SEL, \ 166 ABM1_IPCSC_COEFF_SEL_G, mask_sh), \ 167 ABM_SF(DC_ABM1_IPCSC_COEFF_SEL, \ 168 ABM1_IPCSC_COEFF_SEL_B, mask_sh), \ 169 ABM_SF(BL1_PWM_CURRENT_ABM_LEVEL, \ 170 BL1_PWM_CURRENT_ABM_LEVEL, mask_sh), \ 171 ABM_SF(BL1_PWM_TARGET_ABM_LEVEL, \ 172 BL1_PWM_TARGET_ABM_LEVEL, mask_sh), \ 173 ABM_SF(BL1_PWM_USER_LEVEL, \ 174 BL1_PWM_USER_LEVEL, mask_sh), \ 175 ABM_SF(DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES, \ 176 ABM1_LS_MIN_PIXEL_VALUE_THRES, mask_sh), \ 177 ABM_SF(DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES, \ 178 ABM1_LS_MAX_PIXEL_VALUE_THRES, mask_sh), \ 179 ABM_SF(DC_ABM1_HGLS_REG_READ_PROGRESS, \ 180 ABM1_HG_REG_READ_MISSED_FRAME_CLEAR, mask_sh), \ 181 ABM_SF(DC_ABM1_HGLS_REG_READ_PROGRESS, \ 182 ABM1_LS_REG_READ_MISSED_FRAME_CLEAR, mask_sh), \ 183 ABM_SF(DC_ABM1_HGLS_REG_READ_PROGRESS, \ 184 ABM1_BL_REG_READ_MISSED_FRAME_CLEAR, mask_sh) 185 186 #define ABM_MASK_SH_LIST_DCN10_COMMON(mask_sh) \ 187 ABM_SF(ABM0_DC_ABM1_HG_MISC_CTRL, \ 188 ABM1_HG_NUM_OF_BINS_SEL, mask_sh), \ 189 ABM_SF(ABM0_DC_ABM1_HG_MISC_CTRL, \ 190 ABM1_HG_VMAX_SEL, mask_sh), \ 191 ABM_SF(ABM0_DC_ABM1_HG_MISC_CTRL, \ 192 ABM1_HG_BIN_BITWIDTH_SIZE_SEL, mask_sh), \ 193 ABM_SF(ABM0_DC_ABM1_IPCSC_COEFF_SEL, \ 194 ABM1_IPCSC_COEFF_SEL_R, mask_sh), \ 195 ABM_SF(ABM0_DC_ABM1_IPCSC_COEFF_SEL, \ 196 ABM1_IPCSC_COEFF_SEL_G, mask_sh), \ 197 ABM_SF(ABM0_DC_ABM1_IPCSC_COEFF_SEL, \ 198 ABM1_IPCSC_COEFF_SEL_B, mask_sh), \ 199 ABM_SF(ABM0_BL1_PWM_CURRENT_ABM_LEVEL, \ 200 BL1_PWM_CURRENT_ABM_LEVEL, mask_sh), \ 201 ABM_SF(ABM0_BL1_PWM_TARGET_ABM_LEVEL, \ 202 BL1_PWM_TARGET_ABM_LEVEL, mask_sh), \ 203 ABM_SF(ABM0_BL1_PWM_USER_LEVEL, \ 204 BL1_PWM_USER_LEVEL, mask_sh), \ 205 ABM_SF(ABM0_DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES, \ 206 ABM1_LS_MIN_PIXEL_VALUE_THRES, mask_sh), \ 207 ABM_SF(ABM0_DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES, \ 208 ABM1_LS_MAX_PIXEL_VALUE_THRES, mask_sh), \ 209 ABM_SF(ABM0_DC_ABM1_HGLS_REG_READ_PROGRESS, \ 210 ABM1_HG_REG_READ_MISSED_FRAME_CLEAR, mask_sh), \ 211 ABM_SF(ABM0_DC_ABM1_HGLS_REG_READ_PROGRESS, \ 212 ABM1_LS_REG_READ_MISSED_FRAME_CLEAR, mask_sh), \ 213 ABM_SF(ABM0_DC_ABM1_HGLS_REG_READ_PROGRESS, \ 214 ABM1_BL_REG_READ_MISSED_FRAME_CLEAR, mask_sh) 215 216 #define ABM_MASK_SH_LIST_DCN10(mask_sh) \ 217 ABM_COMMON_MASK_SH_LIST_DCE_COMMON_BASE(mask_sh), \ 218 ABM_MASK_SH_LIST_DCN10_COMMON(mask_sh) 219 220 #define ABM_MASK_SH_LIST_DCN20(mask_sh) ABM_MASK_SH_LIST_DCE110(mask_sh) 221 #define ABM_MASK_SH_LIST_DCN30(mask_sh) ABM_MASK_SH_LIST_DCN10(mask_sh) 222 #define ABM_MASK_SH_LIST_DCN35(mask_sh) ABM_MASK_SH_LIST_DCN10_COMMON(mask_sh) 223 224 #define ABM_MASK_SH_LIST_DCN32(mask_sh) \ 225 ABM_SF(ABM0_DC_ABM1_HG_MISC_CTRL, \ 226 ABM1_HG_NUM_OF_BINS_SEL, mask_sh), \ 227 ABM_SF(ABM0_DC_ABM1_HG_MISC_CTRL, \ 228 ABM1_HG_VMAX_SEL, mask_sh), \ 229 ABM_SF(ABM0_DC_ABM1_HG_MISC_CTRL, \ 230 ABM1_HG_BIN_BITWIDTH_SIZE_SEL, mask_sh), \ 231 ABM_SF(ABM0_DC_ABM1_IPCSC_COEFF_SEL, \ 232 ABM1_IPCSC_COEFF_SEL_R, mask_sh), \ 233 ABM_SF(ABM0_DC_ABM1_IPCSC_COEFF_SEL, \ 234 ABM1_IPCSC_COEFF_SEL_G, mask_sh), \ 235 ABM_SF(ABM0_DC_ABM1_IPCSC_COEFF_SEL, \ 236 ABM1_IPCSC_COEFF_SEL_B, mask_sh), \ 237 ABM_SF(ABM0_BL1_PWM_CURRENT_ABM_LEVEL, \ 238 BL1_PWM_CURRENT_ABM_LEVEL, mask_sh), \ 239 ABM_SF(ABM0_BL1_PWM_TARGET_ABM_LEVEL, \ 240 BL1_PWM_TARGET_ABM_LEVEL, mask_sh), \ 241 ABM_SF(ABM0_BL1_PWM_USER_LEVEL, \ 242 BL1_PWM_USER_LEVEL, mask_sh), \ 243 ABM_SF(ABM0_DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES, \ 244 ABM1_LS_MIN_PIXEL_VALUE_THRES, mask_sh), \ 245 ABM_SF(ABM0_DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES, \ 246 ABM1_LS_MAX_PIXEL_VALUE_THRES, mask_sh), \ 247 ABM_SF(ABM0_DC_ABM1_HGLS_REG_READ_PROGRESS, \ 248 ABM1_HG_REG_READ_MISSED_FRAME_CLEAR, mask_sh), \ 249 ABM_SF(ABM0_DC_ABM1_HGLS_REG_READ_PROGRESS, \ 250 ABM1_LS_REG_READ_MISSED_FRAME_CLEAR, mask_sh), \ 251 ABM_SF(ABM0_DC_ABM1_HGLS_REG_READ_PROGRESS, \ 252 ABM1_BL_REG_READ_MISSED_FRAME_CLEAR, mask_sh) 253 254 #define ABM_REG_FIELD_LIST(type) \ 255 type ABM1_HG_NUM_OF_BINS_SEL; \ 256 type ABM1_HG_VMAX_SEL; \ 257 type ABM1_HG_BIN_BITWIDTH_SIZE_SEL; \ 258 type ABM1_IPCSC_COEFF_SEL_R; \ 259 type ABM1_IPCSC_COEFF_SEL_G; \ 260 type ABM1_IPCSC_COEFF_SEL_B; \ 261 type BL1_PWM_CURRENT_ABM_LEVEL; \ 262 type BL1_PWM_TARGET_ABM_LEVEL; \ 263 type BL1_PWM_USER_LEVEL; \ 264 type ABM1_LS_MIN_PIXEL_VALUE_THRES; \ 265 type ABM1_LS_MAX_PIXEL_VALUE_THRES; \ 266 type ABM1_HG_REG_READ_MISSED_FRAME_CLEAR; \ 267 type ABM1_LS_REG_READ_MISSED_FRAME_CLEAR; \ 268 type ABM1_BL_REG_READ_MISSED_FRAME_CLEAR; \ 269 type MASTER_COMM_INTERRUPT; \ 270 type MASTER_COMM_CMD_REG_BYTE0; \ 271 type MASTER_COMM_CMD_REG_BYTE1; \ 272 type MASTER_COMM_CMD_REG_BYTE2; \ 273 type ABM1_HG_BIN_33_40_SHIFT_INDEX; \ 274 type ABM1_HG_BIN_33_64_SHIFT_FLAG; \ 275 type ABM1_HG_BIN_41_48_SHIFT_INDEX; \ 276 type ABM1_HG_BIN_49_56_SHIFT_INDEX; \ 277 type ABM1_HG_BIN_57_64_SHIFT_INDEX; \ 278 type ABM1_HG_RESULT_DATA; \ 279 type ABM1_HG_RESULT_INDEX; \ 280 type ABM1_ACE_SLOPE_DATA; \ 281 type ABM1_ACE_OFFSET_DATA; \ 282 type ABM1_ACE_OFFSET_SLOPE_INDEX; \ 283 type ABM1_ACE_THRES_INDEX; \ 284 type ABM1_ACE_IGNORE_MASTER_LOCK_EN; \ 285 type ABM1_ACE_READBACK_DB_REG_VALUE_EN; \ 286 type ABM1_ACE_DBUF_REG_UPDATE_PENDING; \ 287 type ABM1_ACE_LOCK; \ 288 type ABM1_ACE_THRES_DATA_1; \ 289 type ABM1_ACE_THRES_DATA_2 290 291 struct dce_abm_shift { 292 ABM_REG_FIELD_LIST(uint8_t); 293 }; 294 295 struct dce_abm_mask { 296 ABM_REG_FIELD_LIST(uint32_t); 297 }; 298 299 struct dce_abm_registers { 300 uint32_t DC_ABM1_HG_SAMPLE_RATE; 301 uint32_t DC_ABM1_LS_SAMPLE_RATE; 302 uint32_t BL1_PWM_BL_UPDATE_SAMPLE_RATE; 303 uint32_t DC_ABM1_HG_MISC_CTRL; 304 uint32_t DC_ABM1_IPCSC_COEFF_SEL; 305 uint32_t BL1_PWM_CURRENT_ABM_LEVEL; 306 uint32_t BL1_PWM_TARGET_ABM_LEVEL; 307 uint32_t BL1_PWM_USER_LEVEL; 308 uint32_t DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES; 309 uint32_t DC_ABM1_HGLS_REG_READ_PROGRESS; 310 uint32_t DC_ABM1_ACE_OFFSET_SLOPE_0; 311 uint32_t DC_ABM1_ACE_OFFSET_SLOPE_DATA; 312 uint32_t DC_ABM1_ACE_PWL_CNTL; 313 uint32_t DC_ABM1_HG_BIN_33_40_SHIFT_INDEX; 314 uint32_t DC_ABM1_HG_BIN_33_64_SHIFT_FLAG; 315 uint32_t DC_ABM1_HG_BIN_41_48_SHIFT_INDEX; 316 uint32_t DC_ABM1_HG_BIN_49_56_SHIFT_INDEX; 317 uint32_t DC_ABM1_HG_BIN_57_64_SHIFT_INDEX; 318 uint32_t DC_ABM1_HG_RESULT_DATA; 319 uint32_t DC_ABM1_HG_RESULT_INDEX; 320 uint32_t DC_ABM1_ACE_THRES_DATA; 321 uint32_t DC_ABM1_ACE_THRES_12; 322 uint32_t MASTER_COMM_CNTL_REG; 323 uint32_t MASTER_COMM_CMD_REG; 324 uint32_t MASTER_COMM_DATA_REG1; 325 uint32_t BIOS_SCRATCH_2; 326 }; 327 328 struct dce_abm { 329 struct abm base; 330 const struct dce_abm_registers *regs; 331 const struct dce_abm_shift *abm_shift; 332 const struct dce_abm_mask *abm_mask; 333 }; 334 335 struct abm *dce_abm_create( 336 struct dc_context *ctx, 337 const struct dce_abm_registers *regs, 338 const struct dce_abm_shift *abm_shift, 339 const struct dce_abm_mask *abm_mask); 340 341 void dce_abm_destroy(struct abm **abm); 342 343 #endif /* _DCE_ABM_H_ */ 344