xref: /openbmc/qemu/include/hw/ppc/spapr_tpm_proxy.h (revision ebe15582)
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 #define SPAPR_TPM_PROXY(obj) OBJECT_CHECK(SpaprTpmProxy, (obj), \
21                                           TYPE_SPAPR_TPM_PROXY)
22 
23 typedef struct SpaprTpmProxy {
24     /*< private >*/
25     DeviceState parent;
26 
27     char *host_path;
28     int host_fd;
29 } SpaprTpmProxy;
30 
31 #endif /* HW_SPAPR_TPM_PROXY_H */
32