summary refs log tree commit diff stats
path: root/include/hw/ipmi/ipmi.h
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2025-04-02 00:01:50 +1000
committerCorey Minyard <corey@minyard.net>2025-04-11 10:50:42 -0500
commit7f9e7af40a1721e5adb95761754bc12af0f3d2f1 (patch)
tree6dca5553c2c4bb2040ee5cdb713b75b12cf52031 /include/hw/ipmi/ipmi.h
parent7376d10b50fb5faa8324092c3f70195d713e34ac (diff)
downloadfocaccia-qemu-7f9e7af40a1721e5adb95761754bc12af0f3d2f1.tar.gz
focaccia-qemu-7f9e7af40a1721e5adb95761754bc12af0f3d2f1.zip
ipmi/bmc-sim: Add 'Get Channel Info' command
Linux issues this command when booting a powernv machine.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Message-ID: <20250401140153.685523-4-npiggin@gmail.com>
Signed-off-by: Corey Minyard <corey@minyard.net>
Diffstat (limited to 'include/hw/ipmi/ipmi.h')
-rw-r--r--include/hw/ipmi/ipmi.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/hw/ipmi/ipmi.h b/include/hw/ipmi/ipmi.h
index c8ef04856e..802a2febb0 100644
--- a/include/hw/ipmi/ipmi.h
+++ b/include/hw/ipmi/ipmi.h
@@ -41,6 +41,15 @@ enum ipmi_op {
     IPMI_SEND_NMI
 };
 
+/* Channel properties */
+#define IPMI_CHANNEL_IPMB                0x00
+#define IPMI_CHANNEL_SYSTEM              0x0f
+#define IPMI_CHANNEL_MEDIUM_IPMB         0x01
+#define IPMI_CHANNEL_MEDIUM_SYSTEM       0x0c
+#define IPMI_CHANNEL_PROTOCOL_IPMB       0x01
+#define IPMI_CHANNEL_PROTOCOL_KCS        0x05
+#define IPMI_CHANNEL_PROTOCOL_BT_15      0x08
+
 #define IPMI_CC_INVALID_CMD                              0xc1
 #define IPMI_CC_COMMAND_INVALID_FOR_LUN                  0xc2
 #define IPMI_CC_TIMEOUT                                  0xc3
@@ -76,6 +85,7 @@ typedef struct IPMIFwInfo {
     int interface_type;
     uint8_t ipmi_spec_major_revision;
     uint8_t ipmi_spec_minor_revision;
+    uint8_t ipmi_channel_protocol;
     uint8_t i2c_slave_address;
     uint32_t uuid;