1f39f5bb1SXiaojie Yuan /* 2f39f5bb1SXiaojie Yuan * Copyright 2018 Advanced Micro Devices, Inc. 3f39f5bb1SXiaojie Yuan * 4f39f5bb1SXiaojie Yuan * Permission is hereby granted, free of charge, to any person obtaining a 5f39f5bb1SXiaojie Yuan * copy of this software and associated documentation files (the "Software"), 6f39f5bb1SXiaojie Yuan * to deal in the Software without restriction, including without limitation 7f39f5bb1SXiaojie Yuan * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8f39f5bb1SXiaojie Yuan * and/or sell copies of the Software, and to permit persons to whom the 9f39f5bb1SXiaojie Yuan * Software is furnished to do so, subject to the following conditions: 10f39f5bb1SXiaojie Yuan * 11f39f5bb1SXiaojie Yuan * The above copyright notice and this permission notice shall be included in 12f39f5bb1SXiaojie Yuan * all copies or substantial portions of the Software. 13f39f5bb1SXiaojie Yuan * 14f39f5bb1SXiaojie Yuan * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15f39f5bb1SXiaojie Yuan * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16f39f5bb1SXiaojie Yuan * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17f39f5bb1SXiaojie Yuan * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18f39f5bb1SXiaojie Yuan * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19f39f5bb1SXiaojie Yuan * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20f39f5bb1SXiaojie Yuan * OTHER DEALINGS IN THE SOFTWARE. 21f39f5bb1SXiaojie Yuan * 22f39f5bb1SXiaojie Yuan */ 23f39f5bb1SXiaojie Yuan 24f39f5bb1SXiaojie Yuan #ifndef __AMDGPU_DISCOVERY__ 25f39f5bb1SXiaojie Yuan #define __AMDGPU_DISCOVERY__ 26f39f5bb1SXiaojie Yuan 27d215a2a3SWenhui Sheng #define DISCOVERY_TMR_SIZE (4 << 10) 28d215a2a3SWenhui Sheng #define DISCOVERY_TMR_OFFSET (64 << 10) 295f6a556fSXiaojie Yuan 30f39f5bb1SXiaojie Yuan void amdgpu_discovery_fini(struct amdgpu_device *adev); 31f39f5bb1SXiaojie Yuan int amdgpu_discovery_reg_base_init(struct amdgpu_device *adev); 3283a0b863SLikun GAO void amdgpu_discovery_harvest_ip(struct amdgpu_device *adev); 33c89d2a2fSPeng Ju Zhou int amdgpu_discovery_get_ip_version(struct amdgpu_device *adev, int hw_id, int number_instance, 3445cf454eSTianci.Yin int *major, int *minor, int *revision); 35376002f4SBokun Zhang 36376002f4SBokun Zhang int amdgpu_discovery_get_vcn_version(struct amdgpu_device *adev, int vcn_instance, 37376002f4SBokun Zhang int *major, int *minor, int *revision); 38f39f5bb1SXiaojie Yuan int amdgpu_discovery_get_gfx_info(struct amdgpu_device *adev); 39*795d0839SAlex Deucher int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev); 40f39f5bb1SXiaojie Yuan 41f39f5bb1SXiaojie Yuan #endif /* __AMDGPU_DISCOVERY__ */ 42