diff options
author | Simon Glass <sjg@chromium.org> | 2012-08-15 13:47:17 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-08-16 12:44:02 -0700 |
commit | 0ecfe96c7e6473bbf40f868f014e5aaec96e81d7 (patch) | |
tree | 61a0a56fbd2f5c0aaace0ffa3245851b0abad5f6 /include/host_command.h | |
parent | cd55d3afaf5317eeec099338b7e79f5a1c78aa84 (diff) | |
download | chrome-ec-0ecfe96c7e6473bbf40f868f014e5aaec96e81d7.tar.gz |
host_command: Add host_send_response() to send responses
Rather than have the send_response() handler called willy nilly from
around the EC code, provide an official function for doing this step.
BUG=chrome-os-partner:12685
BRANCH=snow,link
TEST=manual
build and boot to kernel on snow
Tried 'mkbp reset' command on snow but it did not seem to work properly
Unable to test on link at present
Change-Id: I8d9146639efb2af482d80563b403771cee961942
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/30468
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/host_command.h')
-rw-r--r-- | include/host_command.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/host_command.h b/include/host_command.h index 5313277cab..6218d17ebc 100644 --- a/include/host_command.h +++ b/include/host_command.h @@ -114,6 +114,16 @@ void host_clear_events(uint32_t mask); uint32_t host_get_events(void); /** + * Send a response to the relevent driver for transmission + * + * Once command processing is complete, this is used to send a response + * back to the host. + * + * @param args Contains response to send + */ +void host_send_response(struct host_cmd_handler_args *args); + +/** * Called by host interface module when a command is received. */ void host_command_received(struct host_cmd_handler_args *args); |