From ac26b57735e57647544f2838d0548c1b7263c284 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Mon, 27 Aug 2012 15:31:13 -0700 Subject: 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 Reviewed-on: https://gerrit.chromium.org/gerrit/31511 Reviewed-by: Simon Glass --- include/host_command.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/host_command.h') 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 */ -- cgit v1.2.1