/* * Copyright 2018-2022 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. * */ #ifndef _TA_XGMI_IF_H #define _TA_XGMI_IF_H /* Responses have bit 31 set */ #define RSP_ID_MASK … #define RSP_ID(cmdId) … #define EXTEND_PEER_LINK_INFO_CMD_FLAG … enum ta_command_xgmi { … }; /* XGMI related enumerations */ /**********************************************************/; enum { … }; enum { … }; enum { … }; enum { … }; enum ta_xgmi_status { … }; enum ta_xgmi_assigned_sdma_engine { … }; /* input/output structures for XGMI commands */ /**********************************************************/ struct ta_xgmi_node_info { … }; struct ta_xgmi_peer_link_info { … }; struct xgmi_connected_port_num { … }; /* support both the port num and num_links */ struct ta_xgmi_extend_peer_link_info { … }; struct ta_xgmi_cmd_initialize_output { … }; struct ta_xgmi_cmd_get_node_id_output { … }; struct ta_xgmi_cmd_get_hive_id_output { … }; struct ta_xgmi_cmd_get_topology_info_input { … }; struct ta_xgmi_cmd_get_topology_info_output { … }; struct ta_xgmi_cmd_set_topology_info_input { … }; /* support XGMI TA w/ and w/o port_num both so two similar structs defined */ struct ta_xgmi_cmd_get_peer_link_info { … }; struct ta_xgmi_cmd_get_extend_peer_link_info { … }; /**********************************************************/ /* Common input structure for XGMI callbacks */ ta_xgmi_cmd_input; /* Common output structure for XGMI callbacks */ ta_xgmi_cmd_output; struct ta_xgmi_shared_memory { … }; #endif //_TA_XGMI_IF_H