| * Minimal TPM emulator for TPM test cases |
| * Copyright (c) 2018 Red Hat, Inc. |
| * Marc-André Lureau <marcandre.lureau@redhat.com> |
| * This work is licensed under the terms of the GNU GPL, version 2 or later. |
| * See the COPYING file in the top-level directory. |
| #define TPM_RC_FAILURE 0x101 |
| #define TPM2_ST_NO_SESSIONS 0x8001 |
| #define TPM_TAG_RSP_COMMAND 0xc4 |
| #include "qemu/sockets.h" |
| uint32_t code; /*ordinal/error */ |
| typedef struct TPMTestState { |
| enum TPMVersion tpm_version; |
| void tpm_emu_test_wait_cond(TPMTestState *s); |
| void *tpm_emu_ctrl_thread(void *data); |
| bool tpm_model_is_available(const char *args, const char *tpm_if); |
| #endif /* TESTS_TPM_EMU_H */ |