2
0

If vendor/device/subsystem name is not found, use device ID string (#41)

* If vendor/device/subsystem name is not found, use device ID string


[ROCm/amdsmi commit: 59538cd004]
Este cometimento está contido em:
Chris Freehill
2019-05-16 16:15:17 -05:00
cometido por GitHub
ascendente 29a2617c19
cometimento 9fa8519b38
2 ficheiros modificados com 51 adições e 6 eliminações
+18
Ver ficheiro
@@ -595,6 +595,12 @@ rsmi_status_t rsmi_dev_vendor_id_get(uint32_t dv_ind, uint16_t *id);
* will write the name of the device (up to @p len characters) to the buffer
* @p name.
*
* If the integer ID associated with the device is not found in one of the
* system files containing device name information (e.g.
* /usr/share/misc/pci.ids), then this function will return the hex device ID
* as a string. Updating the system name files can be accompplished with
* "sudo update-pciids".
*
* @param[in] dv_ind a device index
*
* @param[inout] name a pointer to a caller provided char buffer to which the
@@ -618,6 +624,12 @@ rsmi_status_t rsmi_dev_name_get(uint32_t dv_ind, char *name, size_t len);
* name of the vendor (up to @p len characters) buffer @p name. The @p id may
* be a device vendor or subsystem vendor ID.
*
* If the integer ID associated with the vendor is not found in one of the
* system files containing device name information (e.g.
* /usr/share/misc/pci.ids), then this function will return the hex vendor ID
* as a string. Updating the system name files can be accompplished with
* "sudo update-pciids".
*
* @param[in] id a vendor ID
*
* @param[inout] name a pointer to a caller provided char buffer to which the
@@ -659,6 +671,12 @@ rsmi_status_t rsmi_dev_subsystem_id_get(uint32_t dv_ind, uint16_t *id);
* will write the name of the device subsystem (up to @p len characters)
* to the buffer @p name.
*
* If the integer ID associated with the sub-system is not found in one of the
* system files containing device name information (e.g.
* /usr/share/misc/pci.ids), then this function will return the hex sub-system
* ID as a string. Updating the system name files can be accompplished with
* "sudo update-pciids".
*
* @param[in] dv_ind a device index
*
* @param[inout] name a pointer to a caller provided char buffer to which the