Hi Hafnium developers,
Just some thoughts. Since a VM needs to call SPCI_RXTX_MAP_32 to set up rx/tx buffers, we can consider a mailbox is "uninitialized" before this call is made. In that sense, I was thinking if adding MAILBOX_STATE_UNINITIALIZED would make sense.
enum mailbox_state {
/** There is no message in the mailbox. */
MAILBOX_STATE_EMPTY,
/** There is a message in the mailbox that is waiting for a reader. */
MAILBOX_STATE_RECEIVED,
/** There is a message in the mailbox that has been read. */
MAILBOX_STATE_READ,
};
Thanks,
Hong-Seok