summaryrefslogtreecommitdiff
path: root/include/tpm_vendor_cmds.h
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2017-01-18 17:51:56 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-01-28 12:28:39 -0800
commitcf8c12e1391964043eae1a3337361e30b8c39a59 (patch)
treec6c30842a33b4e33105d955edb8a5b4e135c5d03 /include/tpm_vendor_cmds.h
parent25d3f259dbdde99d83b3fe7e14fd9e9c8af007ff (diff)
downloadchrome-ec-cf8c12e1391964043eae1a3337361e30b8c39a59.tar.gz
cr50: vendor command to report tpm state
This vendor command allows the host to retrieve the internal TPM state. The first version of the command will return the failure information collected during assert, if it ever happened, retry counter value and the maximum retry counter value to be able to detect if TPM is in lockout. The structure is packed, it is serialized before being sent to the host. BRANCH=none BUG=chrome-os-partner:60555 TEST=when running on a reef with a depthcharge image capable of displaying TPM state on errors observed state information added to the recovery screen text display. Change-Id: I9d37f7a971013ce802f63218d43697fab68276c9 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/430952 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Andrey Pronin <apronin@chromium.org>
Diffstat (limited to 'include/tpm_vendor_cmds.h')
-rw-r--r--include/tpm_vendor_cmds.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/tpm_vendor_cmds.h b/include/tpm_vendor_cmds.h
index f81abf70d0..89d0b8e770 100644
--- a/include/tpm_vendor_cmds.h
+++ b/include/tpm_vendor_cmds.h
@@ -34,6 +34,10 @@ enum vendor_cmd_cc {
VENDOR_CC_INVALIDATE_INACTIVE_RW = 20,
VENDOR_CC_COMMIT_NVMEM = 21,
+ /* A gap left for the deep sleep control command. */
+
+ VENDOR_CC_REPORT_TPM_STATE = 23,
+
LAST_VENDOR_COMMAND = 65535,
};