1*293f2563SHawking Zhang /*
2*293f2563SHawking Zhang  * Copyright 2020 Advanced Micro Devices, Inc.
3*293f2563SHawking Zhang  *
4*293f2563SHawking Zhang  * Permission is hereby granted, free of charge, to any person obtaining a
5*293f2563SHawking Zhang  * copy of this software and associated documentation files (the "Software"),
6*293f2563SHawking Zhang  * to deal in the Software without restriction, including without limitation
7*293f2563SHawking Zhang  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8*293f2563SHawking Zhang  * and/or sell copies of the Software, and to permit persons to whom the
9*293f2563SHawking Zhang  * Software is furnished to do so, subject to the following conditions:
10*293f2563SHawking Zhang  *
11*293f2563SHawking Zhang  * The above copyright notice and this permission notice shall be included in
12*293f2563SHawking Zhang  * all copies or substantial portions of the Software.
13*293f2563SHawking Zhang  *
14*293f2563SHawking Zhang  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15*293f2563SHawking Zhang  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16*293f2563SHawking Zhang  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17*293f2563SHawking Zhang  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18*293f2563SHawking Zhang  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19*293f2563SHawking Zhang  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20*293f2563SHawking Zhang  * OTHER DEALINGS IN THE SOFTWARE.
21*293f2563SHawking Zhang  *
22*293f2563SHawking Zhang  */
23*293f2563SHawking Zhang #ifndef __AMDGPU_SMUIO_H__
24*293f2563SHawking Zhang #define __AMDGPU_SMUIO_H__
25*293f2563SHawking Zhang 
26*293f2563SHawking Zhang struct amdgpu_smuio_funcs {
27*293f2563SHawking Zhang 	u32 (*get_rom_index_offset)(struct amdgpu_device *adev);
28*293f2563SHawking Zhang 	u32 (*get_rom_data_offset)(struct amdgpu_device *adev);
29*293f2563SHawking Zhang 	void (*update_rom_clock_gating)(struct amdgpu_device *adev, bool enable);
30*293f2563SHawking Zhang 	void (*get_clock_gating_state)(struct amdgpu_device *adev, u32 *flags);
31*293f2563SHawking Zhang };
32*293f2563SHawking Zhang 
33*293f2563SHawking Zhang struct amdgpu_smuio {
34*293f2563SHawking Zhang 	const struct amdgpu_smuio_funcs		*funcs;
35*293f2563SHawking Zhang };
36*293f2563SHawking Zhang 
37*293f2563SHawking Zhang #endif /* __AMDGPU_SMUIO_H__ */
38