mbox: Clarify sequence number constraints
And implement the specified behaviour.
Change-Id: I268d5896aa8dda3875cd79f4ff18929c8e3aea49
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/mbox.h b/mbox.h
index d9a8d03..087975d 100644
--- a/mbox.h
+++ b/mbox.h
@@ -54,6 +54,7 @@
#define MBOX_R_TIMEOUT 0x05
#define MBOX_R_BUSY 0x06
#define MBOX_R_WINDOW_ERROR 0x07
+#define MBOX_R_SEQ_ERROR 0x08
/* Argument Flags */
#define FLAGS_NONE 0x00
@@ -137,6 +138,7 @@
sd_bus *bus;
bool terminate;
uint8_t bmc_events;
+ uint8_t prev_seq;
/* Window State */
/* The window list struct containing all current "windows" */