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