1770b93e9SHawking Zhang /* 2770b93e9SHawking Zhang * Copyright 2019 Advanced Micro Devices, Inc. 3770b93e9SHawking Zhang * 4770b93e9SHawking Zhang * Permission is hereby granted, free of charge, to any person obtaining a 5770b93e9SHawking Zhang * copy of this software and associated documentation files (the "Software"), 6770b93e9SHawking Zhang * to deal in the Software without restriction, including without limitation 7770b93e9SHawking Zhang * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8770b93e9SHawking Zhang * and/or sell copies of the Software, and to permit persons to whom the 9770b93e9SHawking Zhang * Software is furnished to do so, subject to the following conditions: 10770b93e9SHawking Zhang * 11770b93e9SHawking Zhang * The above copyright notice and this permission notice shall be included in 12770b93e9SHawking Zhang * all copies or substantial portions of the Software. 13770b93e9SHawking Zhang * 14770b93e9SHawking Zhang * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15770b93e9SHawking Zhang * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16770b93e9SHawking Zhang * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17770b93e9SHawking Zhang * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18770b93e9SHawking Zhang * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19770b93e9SHawking Zhang * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20770b93e9SHawking Zhang * OTHER DEALINGS IN THE SOFTWARE. 21770b93e9SHawking Zhang * 22770b93e9SHawking Zhang */ 23770b93e9SHawking Zhang 24770b93e9SHawking Zhang #ifndef __GFXHUB_V2_0_H__ 25770b93e9SHawking Zhang #define __GFXHUB_V2_0_H__ 26770b93e9SHawking Zhang 27770b93e9SHawking Zhang u64 gfxhub_v2_0_get_fb_location(struct amdgpu_device *adev); 28770b93e9SHawking Zhang int gfxhub_v2_0_gart_enable(struct amdgpu_device *adev); 29770b93e9SHawking Zhang void gfxhub_v2_0_gart_disable(struct amdgpu_device *adev); 30770b93e9SHawking Zhang void gfxhub_v2_0_set_fault_enable_default(struct amdgpu_device *adev, 31770b93e9SHawking Zhang bool value); 32770b93e9SHawking Zhang void gfxhub_v2_0_init(struct amdgpu_device *adev); 33770b93e9SHawking Zhang u64 gfxhub_v2_0_get_mc_fb_offset(struct amdgpu_device *adev); 34770b93e9SHawking Zhang 35770b93e9SHawking Zhang #endif 36