1e50d9ba0SCandice Li /* 2e50d9ba0SCandice Li * Copyright 2022 Advanced Micro Devices, Inc. 3e50d9ba0SCandice Li * 4e50d9ba0SCandice Li * Permission is hereby granted, free of charge, to any person obtaining a 5e50d9ba0SCandice Li * copy of this software and associated documentation files (the "Software"), 6e50d9ba0SCandice Li * to deal in the Software without restriction, including without limitation 7e50d9ba0SCandice Li * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8e50d9ba0SCandice Li * and/or sell copies of the Software, and to permit persons to whom the 9e50d9ba0SCandice Li * Software is furnished to do so, subject to the following conditions: 10e50d9ba0SCandice Li * 11e50d9ba0SCandice Li * The above copyright notice and this permission notice shall be included in 12e50d9ba0SCandice Li * all copies or substantial portions of the Software. 13e50d9ba0SCandice Li * 14e50d9ba0SCandice Li * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15e50d9ba0SCandice Li * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16e50d9ba0SCandice Li * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17e50d9ba0SCandice Li * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18e50d9ba0SCandice Li * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19e50d9ba0SCandice Li * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20e50d9ba0SCandice Li * OTHER DEALINGS IN THE SOFTWARE. 21e50d9ba0SCandice Li * 22e50d9ba0SCandice Li */ 23e50d9ba0SCandice Li 24e50d9ba0SCandice Li #ifndef __AMDGPU_PSP_TA_H__ 25e50d9ba0SCandice Li #define __AMDGPU_PSP_TA_H__ 26e50d9ba0SCandice Li 27*896b7addSCandice Li /* Calling set_ta_context_funcs is required before using the following macros */ 28*896b7addSCandice Li #define psp_fn_ta_initialize(psp) ((psp)->ta_funcs->fn_ta_initialize((psp))) 29*896b7addSCandice Li #define psp_fn_ta_invoke(psp, ta_cmd_id) ((psp)->ta_funcs->fn_ta_invoke((psp), (ta_cmd_id))) 30*896b7addSCandice Li #define psp_fn_ta_terminate(psp) ((psp)->ta_funcs->fn_ta_terminate((psp))) 31*896b7addSCandice Li 32e50d9ba0SCandice Li void amdgpu_ta_if_debugfs_init(struct amdgpu_device *adev); 33e50d9ba0SCandice Li 34e50d9ba0SCandice Li #endif 35