xref: /linux/drivers/gpu/drm/amd/display/dc/dce/dmub_abm.h (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
1*16012806SWyatt Wood /*
2*16012806SWyatt Wood  * Copyright 2019 Advanced Micro Devices, Inc.
3*16012806SWyatt Wood  *
4*16012806SWyatt Wood  * Permission is hereby granted, free of charge, to any person obtaining a
5*16012806SWyatt Wood  * copy of this software and associated documentation files (the "Software"),
6*16012806SWyatt Wood  * to deal in the Software without restriction, including without limitation
7*16012806SWyatt Wood  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8*16012806SWyatt Wood  * and/or sell copies of the Software, and to permit persons to whom the
9*16012806SWyatt Wood  * Software is furnished to do so, subject to the following conditions:
10*16012806SWyatt Wood  *
11*16012806SWyatt Wood  * The above copyright notice and this permission notice shall be included in
12*16012806SWyatt Wood  * all copies or substantial portions of the Software.
13*16012806SWyatt Wood  *
14*16012806SWyatt Wood  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15*16012806SWyatt Wood  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16*16012806SWyatt Wood  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17*16012806SWyatt Wood  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18*16012806SWyatt Wood  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19*16012806SWyatt Wood  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20*16012806SWyatt Wood  * OTHER DEALINGS IN THE SOFTWARE.
21*16012806SWyatt Wood  *
22*16012806SWyatt Wood  * Authors: AMD
23*16012806SWyatt Wood  *
24*16012806SWyatt Wood  */
25*16012806SWyatt Wood 
26*16012806SWyatt Wood #ifndef __DMUB_ABM_H__
27*16012806SWyatt Wood #define __DMUB_ABM_H__
28*16012806SWyatt Wood 
29*16012806SWyatt Wood #include "abm.h"
30*16012806SWyatt Wood #include "dce_abm.h"
31*16012806SWyatt Wood 
32*16012806SWyatt Wood struct abm *dmub_abm_create(
33*16012806SWyatt Wood 	struct dc_context *ctx,
34*16012806SWyatt Wood 	const struct dce_abm_registers *regs,
35*16012806SWyatt Wood 	const struct dce_abm_shift *abm_shift,
36*16012806SWyatt Wood 	const struct dce_abm_mask *abm_mask);
37*16012806SWyatt Wood 
38*16012806SWyatt Wood void dmub_abm_destroy(struct abm **abm);
39*16012806SWyatt Wood 
40*16012806SWyatt Wood #endif
41