From ee1a2a3a8329323e0600d12ad1b371d62136867e Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Thu, 12 Nov 2015 17:21:17 -0800 Subject: add command multiplexer to the TPM driver This code allows to send extension commands over TPM protocol, no callbacks have been registered yet. The same buffer is used as input and output data. The header is stripped off before the callback is called and then re-added after processing. This could be used for testing, for proprietary firmware update protocol, etc. BRANCH=none BUG=chrome-os-partner:47524 TEST=none yet Change-Id: I91f692cc6e20abe774ee4ef001be28e5af102b2a Signed-off-by: Vadim Bendebury Reviewed-on: https://chromium-review.googlesource.com/312587 --- include/tpm_registers.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/tpm_registers.h') diff --git a/include/tpm_registers.h b/include/tpm_registers.h index ea8011bfed..bb08725d43 100644 --- a/include/tpm_registers.h +++ b/include/tpm_registers.h @@ -37,6 +37,7 @@ struct tpm_cmd_header { uint16_t tag; uint32_t size; uint32_t command_code; + uint16_t subcommand_code; /* Not a standard field. */ } __packed; #endif /* __CROS_EC_TPM_REGISTERS_H */ -- cgit v1.2.1