10 #include "../../tcg-2.0/tss_marshaling.h"
145 &reset_command_body);
#define printk(level,...)
void __noreturn halt(void)
halt the system reliably
#define BIOS_INFO
BIOS_INFO - Expected events.
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
uint32_t tlcl_cr50_get_tpm_mode(uint8_t *tpm_mode)
CR50 specific TPM command sequence to query the current TPM mode.
uint32_t tlcl_cr50_immediate_reset(uint16_t timeout_ms)
CR50 specific TPM command sequence to trigger an immediate reset to the Cr50 device after the specifi...
uint32_t tlcl_cr50_enable_update(uint16_t timeout_ms, uint8_t *num_restored_headers)
CR50 specific tpm command to restore header(s) of the dormant RO/RW image(s) and in case there indeed...
uint32_t tlcl_cr50_reset_ec(void)
CR50 specific TPM command sequence to issue an EC reset.
uint32_t tlcl_cr50_get_recovery_button(uint8_t *recovery_button_state)
CR50 specific tpm command to get the latched state of the recovery button.
uint32_t tlcl_cr50_enable_nvcommits(void)
CR50 specific tpm command to enable nvmem commits before internal timeout expires.
uint32_t tlcl_cr50_get_boot_mode(uint8_t *boot_mode)
CR50 specific TPM command sequence to query the current boot mode.
#define TPM2_CR50_SUB_CMD_TPM_MODE
#define TPM2_CR50_SUB_CMD_GET_BOOT_MODE
#define TPM2_CR50_SUB_CMD_TURN_UPDATE_ON
#define TPM2_CR50_SUB_CMD_IMMEDIATE_RESET
#define TPM2_CR50_VENDOR_COMMAND
#define TPM2_CR50_SUB_CMD_RESET_EC
#define TPM2_CR50_SUB_CMD_NVMEM_ENABLE_COMMITS
#define TPM2_CR50_SUB_CMD_GET_REC_BTN
@ VENDOR_RC_INTERNAL_ERROR
@ VENDOR_RC_NO_SUCH_SUBCOMMAND
@ VENDOR_RC_NO_SUCH_COMMAND
struct vendor_command_response vcr
uint8_t num_restored_headers
uint8_t recovery_button_state
void * tpm_process_command(TPM_CC command, void *command_body)
#define TPM_E_MUST_REBOOT
#define TPM_E_NO_SUCH_COMMAND