xref: /openbmc/linux/drivers/gpu/drm/amd/amdgpu/df_v3_6.h (revision cdd38c5f1ce4398ec58fec95904b75824daab7b5)
113b58150SFeifei Xu /*
213b58150SFeifei Xu  * Copyright 2018 Advanced Micro Devices, Inc.
313b58150SFeifei Xu  *
413b58150SFeifei Xu  * Permission is hereby granted, free of charge, to any person obtaining a
513b58150SFeifei Xu  * copy of this software and associated documentation files (the "Software"),
613b58150SFeifei Xu  * to deal in the Software without restriction, including without limitation
713b58150SFeifei Xu  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
813b58150SFeifei Xu  * and/or sell copies of the Software, and to permit persons to whom the
913b58150SFeifei Xu  * Software is furnished to do so, subject to the following conditions:
1013b58150SFeifei Xu  *
1113b58150SFeifei Xu  * The above copyright notice and this permission notice shall be included in
1213b58150SFeifei Xu  * all copies or substantial portions of the Software.
1313b58150SFeifei Xu  *
1413b58150SFeifei Xu  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1513b58150SFeifei Xu  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1613b58150SFeifei Xu  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
1713b58150SFeifei Xu  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
1813b58150SFeifei Xu  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1913b58150SFeifei Xu  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2013b58150SFeifei Xu  * OTHER DEALINGS IN THE SOFTWARE.
2113b58150SFeifei Xu  *
2213b58150SFeifei Xu  */
2313b58150SFeifei Xu 
2413b58150SFeifei Xu #ifndef __DF_V3_6_H__
2513b58150SFeifei Xu #define __DF_V3_6_H__
2613b58150SFeifei Xu 
2713b58150SFeifei Xu #include "soc15_common.h"
2813b58150SFeifei Xu 
2913b58150SFeifei Xu enum DF_V3_6_MGCG {
3013b58150SFeifei Xu 	DF_V3_6_MGCG_DISABLE = 0,
3113b58150SFeifei Xu 	DF_V3_6_MGCG_ENABLE_00_CYCLE_DELAY = 1,
3213b58150SFeifei Xu 	DF_V3_6_MGCG_ENABLE_01_CYCLE_DELAY = 2,
3313b58150SFeifei Xu 	DF_V3_6_MGCG_ENABLE_15_CYCLE_DELAY = 13,
3413b58150SFeifei Xu 	DF_V3_6_MGCG_ENABLE_31_CYCLE_DELAY = 14,
3513b58150SFeifei Xu 	DF_V3_6_MGCG_ENABLE_63_CYCLE_DELAY = 15
3613b58150SFeifei Xu };
3713b58150SFeifei Xu 
38*e4cf4bf5SJonathan Kim extern const struct attribute_group *df_v3_6_attr_groups[];
3913b58150SFeifei Xu extern const struct amdgpu_df_funcs df_v3_6_funcs;
4013b58150SFeifei Xu 
4113b58150SFeifei Xu #endif
42