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