xref: /openbmc/qemu/include/hw/ppc/spapr_tpm_proxy.h (revision c122bca9)
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*8063396bSEduardo Habkost OBJECT_DECLARE_SIMPLE_TYPE(SpaprTpmProxy, SPAPR_TPM_PROXY)
210fb6bd07SMichael Roth 
22db1015e9SEduardo Habkost struct SpaprTpmProxy {
230fb6bd07SMichael Roth     /*< private >*/
240fb6bd07SMichael Roth     DeviceState parent;
250fb6bd07SMichael Roth 
260fb6bd07SMichael Roth     char *host_path;
270fb6bd07SMichael Roth     int host_fd;
28db1015e9SEduardo Habkost };
290fb6bd07SMichael Roth 
300fb6bd07SMichael Roth #endif /* HW_SPAPR_TPM_PROXY_H */
31