4 * Copyright (C) 2011-2013 IBM Corporation
7 * Stefan Berger <stefanb@us.ibm.com>
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
15 #include "qemu/option.h"
16 #include "qom/object.h"
18 typedef struct TPMState TPMState
;
20 int tpm_config_parse(QemuOptsList
*opts_list
, const char *optarg
);
22 void tpm_cleanup(void);
24 typedef enum TPMVersion
{
25 TPM_VERSION_UNSPEC
= 0,
30 TPMVersion
tpm_tis_get_tpm_version(Object
*obj
);
32 #define TYPE_TPM_TIS "tpm-tis"
34 static inline TPMVersion
tpm_get_version(void)
37 Object
*obj
= object_resolve_path_type("", TYPE_TPM_TIS
, NULL
);
40 return tpm_tis_get_tpm_version(obj
);
43 return TPM_VERSION_UNSPEC
;
46 #endif /* QEMU_TPM_H */