From 943aba060f143667d502792f11e95f42bc7da346 Mon Sep 17 00:00:00 2001 From: Andrew Jeffery Date: Mon, 26 Mar 2018 15:37:33 +1030 Subject: vpnor: Configure a handler table in init_vpnor() Currently the table just mirrors that which is set by the regular implementation, however getting to that point requires massaging the code a little. Thus, separate out this change from one that changes the behaviour of the commands to improve the readability of the latter change. Change-Id: I4007a8a4d508c6d850b8cc878bab8f72bd343498 Signed-off-by: Andrew Jeffery --- mboxd_msg.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'mboxd_msg.h') diff --git a/mboxd_msg.h b/mboxd_msg.h index aebf3bd..d911b7b 100644 --- a/mboxd_msg.h +++ b/mboxd_msg.h @@ -21,4 +21,26 @@ int dispatch_mbox(struct mbox_context *context); int init_mbox_dev(struct mbox_context *context); void free_mbox_dev(struct mbox_context *context); +/* Command handlers */ +int mbox_handle_reset(struct mbox_context *context, + union mbox_regs *req, struct mbox_msg *resp); +int mbox_handle_mbox_info(struct mbox_context *context, + union mbox_regs *req, struct mbox_msg *resp); +int mbox_handle_flash_info(struct mbox_context *context, + union mbox_regs *req, struct mbox_msg *resp); +int mbox_handle_read_window(struct mbox_context *context, + union mbox_regs *req, struct mbox_msg *resp); +int mbox_handle_close_window(struct mbox_context *context, + union mbox_regs *req, struct mbox_msg *resp); +int mbox_handle_write_window(struct mbox_context *context, + union mbox_regs *req, struct mbox_msg *resp); +int mbox_handle_dirty_window(struct mbox_context *context, + union mbox_regs *req, struct mbox_msg *resp); +int mbox_handle_flush_window(struct mbox_context *context, + union mbox_regs *req, struct mbox_msg *resp); +int mbox_handle_ack(struct mbox_context *context, union mbox_regs *req, + struct mbox_msg *resp); +int mbox_handle_erase_window(struct mbox_context *context, + union mbox_regs *req, struct mbox_msg *resp); + #endif /* MBOXD_MSG_H */ -- cgit v1.2.1