xref: /openbmc/qemu/include/hw/ppc/spapr_tpm_proxy.h (revision c122bca9)
1 /*
2  * SPAPR TPM Proxy/Hypercall
3  *
4  * Copyright IBM Corp. 2019
5  *
6  * Authors:
7  *  Michael Roth      <mdroth@linux.vnet.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 
13 #ifndef HW_SPAPR_TPM_PROXY_H
14 #define HW_SPAPR_TPM_PROXY_H
15 
16 #include "qom/object.h"
17 #include "hw/qdev-core.h"
18 
19 #define TYPE_SPAPR_TPM_PROXY "spapr-tpm-proxy"
20 OBJECT_DECLARE_SIMPLE_TYPE(SpaprTpmProxy, SPAPR_TPM_PROXY)
21 
22 struct SpaprTpmProxy {
23     /*< private >*/
24     DeviceState parent;
25 
26     char *host_path;
27     int host_fd;
28 };
29 
30 #endif /* HW_SPAPR_TPM_PROXY_H */
31