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