summaryrefslogtreecommitdiffstats
path: root/mboxd.h
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2018-11-01 17:12:09 +1030
committerAndrew Jeffery <andrew@aj.id.au>2018-11-07 17:12:29 +1030
commitfab672bde6d9036247daf09e8e91f89caa0d7be5 (patch)
tree53930291d38aac87dae73c776e14880848f0ef84 /mboxd.h
parentfe0c9e86ddc55f4fc43b0109b439453d2475c79b (diff)
downloadphosphor-mboxbridge-fab672bde6d9036247daf09e8e91f89caa0d7be5.tar.gz
phosphor-mboxbridge-fab672bde6d9036247daf09e8e91f89caa0d7be5.zip
mboxd: Mark the protocol as reset on shutdown
This is necessary for the host firmware to properly recover from a daemon restart event, as it needs to re-perform the GET_INFO handshake and re-establish any window it had active prior to the daemon restarting. While we're here, rename the symbol to align with the documentation. Change-Id: I628d2ee5972177b7ad78392a86122d16104e7011 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Diffstat (limited to 'mboxd.h')
-rw-r--r--mboxd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/mboxd.h b/mboxd.h
index 8fd3183..1047e46 100644
--- a/mboxd.h
+++ b/mboxd.h
@@ -30,14 +30,14 @@ enum api_version {
#define FLAGS_SHORT_LIFETIME 0x01
/* BMC Event Notification */
-#define BMC_EVENT_REBOOT 0x01
+#define BMC_EVENT_PROTOCOL_RESET 0x01
#define BMC_EVENT_WINDOW_RESET 0x02
-#define BMC_EVENT_ACK_MASK (BMC_EVENT_REBOOT | \
+#define BMC_EVENT_ACK_MASK (BMC_EVENT_PROTOCOL_RESET | \
BMC_EVENT_WINDOW_RESET)
#define BMC_EVENT_FLASH_CTRL_LOST 0x40
#define BMC_EVENT_DAEMON_READY 0x80
-#define BMC_EVENT_V1_MASK BMC_EVENT_REBOOT
-#define BMC_EVENT_V2_MASK (BMC_EVENT_REBOOT | \
+#define BMC_EVENT_V1_MASK BMC_EVENT_PROTOCOL_RESET
+#define BMC_EVENT_V2_MASK (BMC_EVENT_PROTOCOL_RESET | \
BMC_EVENT_WINDOW_RESET | \
BMC_EVENT_FLASH_CTRL_LOST | \
BMC_EVENT_DAEMON_READY)
OpenPOWER on IntegriCloud