blob: 9b81ce9189386c7c58440c117ff74d7a7a905827 [file] [log] [blame]
Stefan Bergerd1a0cf72013-02-27 12:47:49 -05001/*
2 * Public TPM functions
3 *
4 * Copyright (C) 2011-2013 IBM Corporation
5 *
6 * Authors:
7 * Stefan Berger <stefanb@us.ibm.com>
8 *
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.
11 */
12#ifndef QEMU_TPM_H
13#define QEMU_TPM_H
14
15#include "qemu/option.h"
16
Stefan Berger8f0605c2013-03-28 07:26:21 -040017typedef struct TPMState TPMState;
Stefan Berger8f0605c2013-03-28 07:26:21 -040018
Stefan Bergerd1a0cf72013-02-27 12:47:49 -050019int tpm_config_parse(QemuOptsList *opts_list, const char *optarg);
20int tpm_init(void);
21void tpm_cleanup(void);
22
Stefan Berger711b20b2014-08-11 16:33:36 -040023#define TYPE_TPM_TIS "tpm-tis"
24
25static inline bool tpm_find(void)
26{
27 return object_resolve_path_type("", TYPE_TPM_TIS, NULL);
28}
29
Stefan Bergerd1a0cf72013-02-27 12:47:49 -050030#endif /* QEMU_TPM_H */