1*f9490399SQingqing Zhuo /*
2*f9490399SQingqing Zhuo  * Copyright 2021 Advanced Micro Devices, Inc.
3*f9490399SQingqing Zhuo  *
4*f9490399SQingqing Zhuo  * Permission is hereby granted, free of charge, to any person obtaining a
5*f9490399SQingqing Zhuo  * copy of this software and associated documentation files (the "Software"),
6*f9490399SQingqing Zhuo  * to deal in the Software without restriction, including without limitation
7*f9490399SQingqing Zhuo  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8*f9490399SQingqing Zhuo  * and/or sell copies of the Software, and to permit persons to whom the
9*f9490399SQingqing Zhuo  * Software is furnished to do so, subject to the following conditions:
10*f9490399SQingqing Zhuo  *
11*f9490399SQingqing Zhuo  * The above copyright notice and this permission notice shall be included in
12*f9490399SQingqing Zhuo  * all copies or substantial portions of the Software.
13*f9490399SQingqing Zhuo  *
14*f9490399SQingqing Zhuo  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15*f9490399SQingqing Zhuo  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16*f9490399SQingqing Zhuo  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17*f9490399SQingqing Zhuo  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18*f9490399SQingqing Zhuo  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19*f9490399SQingqing Zhuo  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20*f9490399SQingqing Zhuo  * OTHER DEALINGS IN THE SOFTWARE.
21*f9490399SQingqing Zhuo  *
22*f9490399SQingqing Zhuo  * Authors: AMD
23*f9490399SQingqing Zhuo  *
24*f9490399SQingqing Zhuo  */
25*f9490399SQingqing Zhuo 
26*f9490399SQingqing Zhuo #ifndef __DCN315_CLK_MGR_H__
27*f9490399SQingqing Zhuo #define __DCN315_CLK_MGR_H__
28*f9490399SQingqing Zhuo #include "clk_mgr_internal.h"
29*f9490399SQingqing Zhuo 
30*f9490399SQingqing Zhuo struct dcn315_watermarks;
31*f9490399SQingqing Zhuo 
32*f9490399SQingqing Zhuo struct dcn315_smu_watermark_set {
33*f9490399SQingqing Zhuo 	struct dcn315_watermarks *wm_set;
34*f9490399SQingqing Zhuo 	union large_integer mc_address;
35*f9490399SQingqing Zhuo };
36*f9490399SQingqing Zhuo 
37*f9490399SQingqing Zhuo struct clk_mgr_dcn315 {
38*f9490399SQingqing Zhuo 	struct clk_mgr_internal base;
39*f9490399SQingqing Zhuo 	struct dcn315_smu_watermark_set smu_wm_set;
40*f9490399SQingqing Zhuo };
41*f9490399SQingqing Zhuo 
42*f9490399SQingqing Zhuo void dcn315_clk_mgr_construct(struct dc_context *ctx,
43*f9490399SQingqing Zhuo 		struct clk_mgr_dcn315 *clk_mgr,
44*f9490399SQingqing Zhuo 		struct pp_smu_funcs *pp_smu,
45*f9490399SQingqing Zhuo 		struct dccg *dccg);
46*f9490399SQingqing Zhuo 
47*f9490399SQingqing Zhuo void dcn315_clk_mgr_destroy(struct clk_mgr_internal *clk_mgr_int);
48*f9490399SQingqing Zhuo 
49*f9490399SQingqing Zhuo #endif //__DCN315_CLK_MGR_H__
50