aboutsummaryrefslogtreecommitdiff
path: root/hw/tpm/tpm_tis.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2017-10-10 00:55:48 +0200
committerStefan Berger <stefanb@linux.vnet.ibm.com>2017-10-19 11:42:23 -0400
commitcfab6da8a7d3e9d825ea284a0ebbf6579e204f74 (patch)
treedc6c316c356dc832e7b35606fd97c86b0586fae6 /hw/tpm/tpm_tis.h
parented836d9d6bf0c89bf2e43e300fd2254237a39ef3 (diff)
tpm: move TPMSizedBuffer to tpm_tis.h
Close to where it's being used. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Diffstat (limited to 'hw/tpm/tpm_tis.h')
-rw-r--r--hw/tpm/tpm_tis.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/tpm/tpm_tis.h b/hw/tpm/tpm_tis.h
index a1df41fa21..31e612a7f4 100644
--- a/hw/tpm/tpm_tis.h
+++ b/hw/tpm/tpm_tis.h
@@ -37,6 +37,11 @@ typedef enum {
TPM_TIS_STATE_RECEPTION,
} TPMTISState;
+typedef struct TPMSizedBuffer {
+ uint32_t size;
+ uint8_t *buffer;
+} TPMSizedBuffer;
+
/* locality data -- all fields are persisted */
typedef struct TPMLocality {
TPMTISState state;