xref: /openbmc/qemu/include/hw/ppc/spapr_tpm_proxy.h (revision db1015e9)
10fb6bd07SMichael Roth /*
20fb6bd07SMichael Roth  * SPAPR TPM Proxy/Hypercall
30fb6bd07SMichael Roth  *
40fb6bd07SMichael Roth  * Copyright IBM Corp. 2019
50fb6bd07SMichael Roth  *
60fb6bd07SMichael Roth  * Authors:
70fb6bd07SMichael Roth  *  Michael Roth      <mdroth@linux.vnet.ibm.com>
80fb6bd07SMichael Roth  *
90fb6bd07SMichael Roth  * This work is licensed under the terms of the GNU GPL, version 2 or later.
100fb6bd07SMichael Roth  * See the COPYING file in the top-level directory.
110fb6bd07SMichael Roth  */
120fb6bd07SMichael Roth 
130fb6bd07SMichael Roth #ifndef HW_SPAPR_TPM_PROXY_H
140fb6bd07SMichael Roth #define HW_SPAPR_TPM_PROXY_H
150fb6bd07SMichael Roth 
160fb6bd07SMichael Roth #include "qom/object.h"
170fb6bd07SMichael Roth #include "hw/qdev-core.h"
180fb6bd07SMichael Roth 
190fb6bd07SMichael Roth #define TYPE_SPAPR_TPM_PROXY "spapr-tpm-proxy"
20*db1015e9SEduardo Habkost typedef struct SpaprTpmProxy SpaprTpmProxy;
210fb6bd07SMichael Roth #define SPAPR_TPM_PROXY(obj) OBJECT_CHECK(SpaprTpmProxy, (obj), \
220fb6bd07SMichael Roth                                           TYPE_SPAPR_TPM_PROXY)
230fb6bd07SMichael Roth 
24*db1015e9SEduardo Habkost struct SpaprTpmProxy {
250fb6bd07SMichael Roth     /*< private >*/
260fb6bd07SMichael Roth     DeviceState parent;
270fb6bd07SMichael Roth 
280fb6bd07SMichael Roth     char *host_path;
290fb6bd07SMichael Roth     int host_fd;
30*db1015e9SEduardo Habkost };
310fb6bd07SMichael Roth 
320fb6bd07SMichael Roth #endif /* HW_SPAPR_TPM_PROXY_H */
33