spapr_tpm_proxy.h 626 B

123456789101112131415161718192021222324252627282930
  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. #ifndef HW_SPAPR_TPM_PROXY_H
  13. #define HW_SPAPR_TPM_PROXY_H
  14. #include "qom/object.h"
  15. #include "hw/qdev-core.h"
  16. #define TYPE_SPAPR_TPM_PROXY "spapr-tpm-proxy"
  17. OBJECT_DECLARE_SIMPLE_TYPE(SpaprTpmProxy, SPAPR_TPM_PROXY)
  18. struct SpaprTpmProxy {
  19. /*< private >*/
  20. DeviceState parent;
  21. char *host_path;
  22. int host_fd;
  23. };
  24. #endif /* HW_SPAPR_TPM_PROXY_H */