summaryrefslogtreecommitdiff
path: root/src/drivers/ipmi/ipmi_kcs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/ipmi/ipmi_kcs.h')
-rw-r--r--src/drivers/ipmi/ipmi_kcs.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/drivers/ipmi/ipmi_kcs.h b/src/drivers/ipmi/ipmi_kcs.h
index f35802e27b..b3775219c3 100644
--- a/src/drivers/ipmi/ipmi_kcs.h
+++ b/src/drivers/ipmi/ipmi_kcs.h
@@ -22,6 +22,12 @@
#define IPMI_BMC_GET_DEVICE_ID 0x01
#define IPMI_IPMI_VERSION_MINOR(x) ((x) >> 4)
#define IPMI_IPMI_VERSION_MAJOR(x) ((x) & 0xf)
+#define IPMI_BMC_GET_SELFTEST_RESULTS 0x04
+#define IPMI_APP_SELFTEST_RESERVED 0xFF
+#define IPMI_APP_SELFTEST_NO_ERROR 0x55
+#define IPMI_APP_SELFTEST_NOT_IMPLEMENTED 0x56
+#define IPMI_APP_SELFTEST_ERROR 0x57
+#define IPMI_APP_SELFTEST_FATAL_HW_ERROR 0x58
#define IPMI_NETFN_FIRMWARE 0x08
#define IPMI_NETFN_STORAGE 0x0a
@@ -52,4 +58,11 @@ struct ipmi_devid_rsp {
uint8_t product_id[2];
} __packed;
+/* Get Self Test Results */
+struct ipmi_selftest_rsp {
+ struct ipmi_rsp resp;
+ uint8_t result;
+ uint8_t param;
+} __packed;
+
#endif