summaryrefslogtreecommitdiff
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
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>
-rw-r--r--hw/tpm/tpm_tis.h5
-rw-r--r--include/sysemu/tpm_backend.h5
2 files changed, 5 insertions, 5 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;
diff --git a/include/sysemu/tpm_backend.h b/include/sysemu/tpm_backend.h
index adb6a68076..63093551a1 100644
--- a/include/sysemu/tpm_backend.h
+++ b/include/sysemu/tpm_backend.h
@@ -66,11 +66,6 @@ struct TPMBackendClass {
void (*handle_request)(TPMBackend *s, TPMBackendCmd cmd);
};
-typedef struct TPMSizedBuffer {
- uint32_t size;
- uint8_t *buffer;
-} TPMSizedBuffer;
-
struct TPMDriverOps {
enum TpmType type;
const QemuOptDesc *opts;