Handle case where PCIe information is not implemented in system

Also add a new error code for this.
This commit is contained in:
Chris Freehill
2018-12-19 17:24:27 -06:00
orang tua 5a9a729b31
melakukan 5e6424cab3
3 mengubah file dengan 36 tambahan dan 9 penghapusan
+6 -1
Melihat File
@@ -84,9 +84,14 @@ typedef enum {
RSMI_STATUS_INTERNAL_EXCEPTION, //!< An internal exception was caught
RSMI_STATUS_INPUT_OUT_OF_BOUNDS, //!< The provided input is out of
//!< allowable or safe range
RSMI_INITIALIZATION_ERROR, //!< An error occurred when rsmi
RSMI_STATUS_INIT_ERROR, //!< An error occurred when rsmi
//!< initializing internal data
//!< structures
RSMI_INITIALIZATION_ERROR = RSMI_STATUS_INIT_ERROR,
RSMI_STATUS_NOT_YET_IMPLEMENTED, //!< The requested function has not
//!< yet been implemented in the
//!< current system for the current
//!< devices
RSMI_STATUS_UNKNOWN_ERROR = 0xFFFFFFFF, //!< An unknown error occurred
} rsmi_status_t;