mirror of https://github.com/xemu-project/xemu.git
tpm-tis: move TPMState to TIS header
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>
This commit is contained in:
parent
d280976625
commit
5086bf9784
|
@ -12,26 +12,7 @@
|
||||||
#ifndef TPM_TPM_INT_H
|
#ifndef TPM_TPM_INT_H
|
||||||
#define TPM_TPM_INT_H
|
#define TPM_TPM_INT_H
|
||||||
|
|
||||||
#include "exec/memory.h"
|
#include "qemu/osdep.h"
|
||||||
#include "tpm_tis.h"
|
|
||||||
|
|
||||||
/* overall state of the TPM interface */
|
|
||||||
struct TPMState {
|
|
||||||
ISADevice busdev;
|
|
||||||
MemoryRegion mmio;
|
|
||||||
|
|
||||||
union {
|
|
||||||
TPMTISEmuState tis;
|
|
||||||
} s;
|
|
||||||
|
|
||||||
TPMBackendCmd cmd;
|
|
||||||
|
|
||||||
char *backend;
|
|
||||||
TPMBackend *be_driver;
|
|
||||||
TPMVersion be_tpm_version;
|
|
||||||
};
|
|
||||||
|
|
||||||
#define TPM(obj) OBJECT_CHECK(TPMState, (obj), TYPE_TPM_TIS)
|
|
||||||
|
|
||||||
#define TPM_STANDARD_CMDLINE_OPTS \
|
#define TPM_STANDARD_CMDLINE_OPTS \
|
||||||
{ \
|
{ \
|
||||||
|
|
|
@ -72,4 +72,23 @@ typedef struct TPMTISEmuState {
|
||||||
uint32_t irq_num;
|
uint32_t irq_num;
|
||||||
} TPMTISEmuState;
|
} TPMTISEmuState;
|
||||||
|
|
||||||
|
/* overall state of the TPM interface */
|
||||||
|
struct TPMState {
|
||||||
|
ISADevice busdev;
|
||||||
|
MemoryRegion mmio;
|
||||||
|
|
||||||
|
union {
|
||||||
|
TPMTISEmuState tis;
|
||||||
|
} s;
|
||||||
|
|
||||||
|
uint8_t locty_number;
|
||||||
|
TPMBackendCmd cmd;
|
||||||
|
|
||||||
|
char *backend;
|
||||||
|
TPMBackend *be_driver;
|
||||||
|
TPMVersion be_tpm_version;
|
||||||
|
};
|
||||||
|
|
||||||
|
#define TPM(obj) OBJECT_CHECK(TPMState, (obj), TYPE_TPM_TIS)
|
||||||
|
|
||||||
#endif /* TPM_TPM_TIS_H */
|
#endif /* TPM_TPM_TIS_H */
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
#include "tpm_util.h"
|
#include "tpm_util.h"
|
||||||
#include "tpm_int.h"
|
#include "tpm_int.h"
|
||||||
|
#include "exec/memory.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Write an error message in the given output buffer.
|
* Write an error message in the given output buffer.
|
||||||
|
|
Loading…
Reference in New Issue