From fe5c01cb6e9426c81af39605ddcb2adbac1d8a1c Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Wed, 11 Jul 2012 12:34:39 -0700 Subject: 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 Reviewed-on: https://gerrit.chromium.org/gerrit/27181 Reviewed-by: Bill Richardson --- include/ec_commands.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include') 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 */ -- cgit v1.2.1