diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2018-11-01 17:12:09 +1030 |
---|---|---|
committer | Andrew Jeffery <andrew@aj.id.au> | 2018-11-07 17:12:29 +1030 |
commit | fab672bde6d9036247daf09e8e91f89caa0d7be5 (patch) | |
tree | 53930291d38aac87dae73c776e14880848f0ef84 /mboxd.h | |
parent | fe0c9e86ddc55f4fc43b0109b439453d2475c79b (diff) | |
download | phosphor-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.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |