mirror of
https://github.com/qemu/qemu.git
synced 2024-12-03 08:43:38 +08:00
711b20b479
Add an SSDT ACPI table for the TPM device. Add a TCPA table for BIOS logging area when a TPM is being used. The latter follows this spec here: http://www.trustedcomputinggroup.org/files/static_page_files/DCD4188E-1A4B-B294-D050A155FB6F7385/TCG_ACPIGeneralSpecification_PublicReview.pdf This patch has Michael Tsirkin's patches folded in. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
31 lines
649 B
C
31 lines
649 B
C
/*
|
|
* Public TPM functions
|
|
*
|
|
* Copyright (C) 2011-2013 IBM Corporation
|
|
*
|
|
* Authors:
|
|
* Stefan Berger <stefanb@us.ibm.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.
|
|
*/
|
|
#ifndef QEMU_TPM_H
|
|
#define QEMU_TPM_H
|
|
|
|
#include "qemu/option.h"
|
|
|
|
typedef struct TPMState TPMState;
|
|
|
|
int tpm_config_parse(QemuOptsList *opts_list, const char *optarg);
|
|
int tpm_init(void);
|
|
void tpm_cleanup(void);
|
|
|
|
#define TYPE_TPM_TIS "tpm-tis"
|
|
|
|
static inline bool tpm_find(void)
|
|
{
|
|
return object_resolve_path_type("", TYPE_TPM_TIS, NULL);
|
|
}
|
|
|
|
#endif /* QEMU_TPM_H */
|