xref: /openbmc/qemu/include/hw/ppc/spapr_tpm_proxy.h (revision 0fb6bd07)
1*0fb6bd07SMichael Roth /*
2*0fb6bd07SMichael Roth  * SPAPR TPM Proxy/Hypercall
3*0fb6bd07SMichael Roth  *
4*0fb6bd07SMichael Roth  * Copyright IBM Corp. 2019
5*0fb6bd07SMichael Roth  *
6*0fb6bd07SMichael Roth  * Authors:
7*0fb6bd07SMichael Roth  *  Michael Roth      <mdroth@linux.vnet.ibm.com>
8*0fb6bd07SMichael Roth  *
9*0fb6bd07SMichael Roth  * This work is licensed under the terms of the GNU GPL, version 2 or later.
10*0fb6bd07SMichael Roth  * See the COPYING file in the top-level directory.
11*0fb6bd07SMichael Roth  */
12*0fb6bd07SMichael Roth 
13*0fb6bd07SMichael Roth #ifndef HW_SPAPR_TPM_PROXY_H
14*0fb6bd07SMichael Roth #define HW_SPAPR_TPM_PROXY_H
15*0fb6bd07SMichael Roth 
16*0fb6bd07SMichael Roth #include "qom/object.h"
17*0fb6bd07SMichael Roth #include "hw/qdev-core.h"
18*0fb6bd07SMichael Roth 
19*0fb6bd07SMichael Roth #define TYPE_SPAPR_TPM_PROXY "spapr-tpm-proxy"
20*0fb6bd07SMichael Roth #define SPAPR_TPM_PROXY(obj) OBJECT_CHECK(SpaprTpmProxy, (obj), \
21*0fb6bd07SMichael Roth                                           TYPE_SPAPR_TPM_PROXY)
22*0fb6bd07SMichael Roth 
23*0fb6bd07SMichael Roth typedef struct SpaprTpmProxy {
24*0fb6bd07SMichael Roth     /*< private >*/
25*0fb6bd07SMichael Roth     DeviceState parent;
26*0fb6bd07SMichael Roth 
27*0fb6bd07SMichael Roth     char *host_path;
28*0fb6bd07SMichael Roth     int host_fd;
29*0fb6bd07SMichael Roth } SpaprTpmProxy;
30*0fb6bd07SMichael Roth 
31*0fb6bd07SMichael Roth #endif /* HW_SPAPR_TPM_PROXY_H */
32