summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-07-11 12:34:39 -0700
committerGerrit <chrome-bot@google.com>2012-07-11 14:46:31 -0700
commitfe5c01cb6e9426c81af39605ddcb2adbac1d8a1c (patch)
tree6e5d6d251c00cdbf716aefb7cfbbbc33809d118f /include
parent07ca0977fe554696288048c5c691aa5b9cfa7ac8 (diff)
downloadchrome-ec-fe5c01cb6e9426c81af39605ddcb2adbac1d8a1c.tar.gz
Add host command to check what command versions are supported
BUG=chrome-os-partner:11275 TEST=manual ectool cmdversions 0x08 -> should print 0x00000001 ectool cmdversions 0xdd -> should print command not supported Change-Id: I7801be51492eb6a5321accaa2b66f0dc8d5a2797 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/27181 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/ec_commands.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index ec5837f217..fb9bdc7d82 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -290,6 +290,21 @@ struct ec_params_read_memmap {
uint8_t size; /* Size to read in bytes */
} __packed;
+/* Read versions supported for a command */
+#define EC_CMD_GET_CMD_VERSIONS 0x08
+
+struct ec_params_get_cmd_versions {
+ uint8_t cmd; /* Command to check */
+} __packed;
+
+struct ec_response_get_cmd_versions {
+ /*
+ * Mask of supported versions; use EC_VER_MASK() to compare with a
+ * desired version.
+ */
+ uint32_t version_mask;
+} __packed;
+
/*****************************************************************************/
/* Flash commands */