SWDEV-366720 - Changed amdsmi_get_device_handle_from_bdf

Changed implementation and input parameters

Change-Id: Ifca3247132eb4033f99d74617a53f54ad076dad0
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>


[ROCm/amdsmi commit: 76f6cf7a9d]
This commit is contained in:
Dalibor Stanisavljevic
2022-11-16 09:30:31 +01:00
parent 6d5261ac5d
commit 34e975b897
5 changed files with 78 additions and 53 deletions
+1 -8
View File
@@ -1291,19 +1291,12 @@ amdsmi_status_t amdsmi_get_device_type(amdsmi_device_handle device_handle,
*
* @param[in] bdf The bdf to match with corresponding device handle.
*
* @param[in] device_handles a list of devices handles on the socket.
*
* @param[in] device_count a count of handles in device_handles.
*
* @param[out] device_handle device handle with the matching bdf.
*
* @retval ::AMDSMI_STATUS_SUCCESS call was successful
* @retval ::AMDSMI_STATUS_INVAL the provided arguments are not valid
*/
amdsmi_status_t amdsmi_get_device_handle_from_bdf(amdsmi_bdf_t bdf,
amdsmi_device_handle* device_handles,
uint32_t device_count,
amdsmi_device_handle* device_handle);
amdsmi_status_t amdsmi_get_device_handle_from_bdf(amdsmi_bdf_t bdf, amdsmi_device_handle* device_handle);
/** @} */ // end of Discovery