xref: /linux/drivers/gpu/drm/amd/amdgpu/athub_v1_0.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1bee7b51aSLe Ma /*
2bee7b51aSLe Ma  * Copyright 2016 Advanced Micro Devices, Inc.
3bee7b51aSLe Ma  *
4bee7b51aSLe Ma  * Permission is hereby granted, free of charge, to any person obtaining a
5bee7b51aSLe Ma  * copy of this software and associated documentation files (the "Software"),
6bee7b51aSLe Ma  * to deal in the Software without restriction, including without limitation
7bee7b51aSLe Ma  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8bee7b51aSLe Ma  * and/or sell copies of the Software, and to permit persons to whom the
9bee7b51aSLe Ma  * Software is furnished to do so, subject to the following conditions:
10bee7b51aSLe Ma  *
11bee7b51aSLe Ma  * The above copyright notice and this permission notice shall be included in
12bee7b51aSLe Ma  * all copies or substantial portions of the Software.
13bee7b51aSLe Ma  *
14bee7b51aSLe Ma  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15bee7b51aSLe Ma  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16bee7b51aSLe Ma  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17bee7b51aSLe Ma  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18bee7b51aSLe Ma  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19bee7b51aSLe Ma  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20bee7b51aSLe Ma  * OTHER DEALINGS IN THE SOFTWARE.
21bee7b51aSLe Ma  *
22bee7b51aSLe Ma  */
23bee7b51aSLe Ma #ifndef __ATHUB_V1_0_H__
24bee7b51aSLe Ma #define __ATHUB_V1_0_H__
25bee7b51aSLe Ma 
26bee7b51aSLe Ma int athub_v1_0_set_clockgating(struct amdgpu_device *adev,
27bee7b51aSLe Ma 			       enum amd_clockgating_state state);
28*25faeddcSEvan Quan void athub_v1_0_get_clockgating(struct amdgpu_device *adev, u64 *flags);
29bee7b51aSLe Ma 
30bee7b51aSLe Ma #endif
31