summaryrefslogtreecommitdiff
path: root/include/host_command.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-08-27 15:31:13 -0700
committerGerrit <chrome-bot@google.com>2012-08-28 14:05:08 -0700
commitac26b57735e57647544f2838d0548c1b7263c284 (patch)
tree643f82465e3e336c0ac37220baf312e436100e1b /include/host_command.h
parent73e439dc87767e92f45ff78641449c796caa6ef8 (diff)
downloadchrome-ec-ac26b57735e57647544f2838d0548c1b7263c284.tar.gz
Copy host command params out of LPC space during checksumming
This prevents the host from rewriting them during the checksum operation. BUG=chrome-os-partner:13202 TEST='ectool version' should still work BRANCH=link Change-Id: Ib44f45b027c0a54ba40f70052728ba427dc71849 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/31511 Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/host_command.h')
-rw-r--r--include/host_command.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/host_command.h b/include/host_command.h
index 6218d17ebc..3afca62908 100644
--- a/include/host_command.h
+++ b/include/host_command.h
@@ -21,6 +21,7 @@ struct host_cmd_handler_args {
void (*send_response)(struct host_cmd_handler_args *args);
uint8_t command; /* Command (e.g., EC_CMD_FLASH_GET_INFO) */
uint8_t version; /* Version of command (0-31) */
+ uint8_t flags; /* Flags (EC_HOST_ARGS_FLAG_*) */
uint8_t params_size; /* Size of input parameters in bytes */
uint8_t i2c_old_response; /* (for I2C) send an old-style response */
const void *params; /* Input parameters */