summaryrefslogtreecommitdiffstats
path: root/mboxd_msg.h
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2018-03-26 14:36:43 +1030
committerAndrew Jeffery <andrew@aj.id.au>2018-04-04 17:27:31 +0930
commitefb09def5e21959972adde9f5c092f1840eff908 (patch)
treec8509e238395315024124c63ced2cf31de00f6be /mboxd_msg.h
parent30bcf84c932a579532e5f8417af549494e11b6e9 (diff)
downloadphosphor-mboxd-efb09def5e21959972adde9f5c092f1840eff908.tar.gz
phosphor-mboxd-efb09def5e21959972adde9f5c092f1840eff908.zip
mbox_msg: Move handler table to struct mbox_context
This allows us to provide alternative implementations for the handlers as necessary. The vpnor feature, which enforces the read-only property of FFS partitions, requires this for handling CREATE_WRITE_WINDOW. Change-Id: Ia969a6f085244b194c500e66b62adca5e10bacba Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Diffstat (limited to 'mboxd_msg.h')
-rw-r--r--mboxd_msg.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/mboxd_msg.h b/mboxd_msg.h
index 124927c..aebf3bd 100644
--- a/mboxd_msg.h
+++ b/mboxd_msg.h
@@ -13,18 +13,6 @@
#define NO_BMC_EVENT false
#define SET_BMC_EVENT true
-struct mbox_msg {
- uint8_t command;
- uint8_t seq;
- uint8_t args[MBOX_ARGS_BYTES];
- uint8_t response;
-};
-
-union mbox_regs {
- uint8_t raw[MBOX_REG_BYTES];
- struct mbox_msg msg;
-};
-
int set_bmc_events(struct mbox_context *context, uint8_t bmc_event,
bool write_back);
int clr_bmc_events(struct mbox_context *context, uint8_t bmc_event,
OpenPOWER on IntegriCloud