diff options
| author | Simon Glass <[email protected]> | 2022-08-30 21:05:37 -0600 |
|---|---|---|
| committer | Ilias Apalodimas <[email protected]> | 2022-09-03 16:59:05 +0300 |
| commit | 4c57ec76b7254cf1743748b70239bddf6100237a (patch) | |
| tree | d4df65873b337c030d24b8478d21b469cfca596d /include | |
| parent | 3bb4db4c3883c66ee0bbf152e9ba1d2504fa8c9f (diff) | |
tpm: Implement state command for Cr50
Add a vendor-specific TPM2 command for this and implement it for Cr50.
Note: This is not part of the TPM spec, but is a Cr50 extension.
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Signed-off-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/tpm-v2.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/tpm-v2.h b/include/tpm-v2.h index e79c90b9395..36c6ac0be6e 100644 --- a/include/tpm-v2.h +++ b/include/tpm-v2.h @@ -658,4 +658,17 @@ u32 tpm2_disable_platform_hierarchy(struct udevice *dev); u32 tpm2_submit_command(struct udevice *dev, const u8 *sendbuf, u8 *recvbuf, size_t *recv_size); +/** + * tpm_cr50_report_state() - Report the Cr50 internal state + * + * @dev: TPM device + * @vendor_cmd: Vendor command number to send + * @vendor_subcmd: Vendor sub-command number to send + * @recvbuf: Buffer to save the response to + * @recv_size: Pointer to the size of the response buffer + * Return: result of the operation + */ +u32 tpm2_report_state(struct udevice *dev, uint vendor_cmd, uint vendor_subcmd, + u8 *recvbuf, size_t *recv_size); + #endif /* __TPM_V2_H */ |
