tpm_prop.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * TPM utility functions
  3. *
  4. * Copyright (c) 2010 - 2015 IBM Corporation
  5. * Authors:
  6. * Stefan Berger <stefanb@us.ibm.com>
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2.1 of the License, or (at your option) any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with this library; if not, see <http://www.gnu.org/licenses/>
  20. */
  21. #ifndef HW_TPM_PROP_H
  22. #define HW_TPM_PROP_H
  23. #include "system/tpm_backend.h"
  24. #include "hw/qdev-properties.h"
  25. extern const PropertyInfo qdev_prop_tpm;
  26. #define DEFINE_PROP_TPMBE(_n, _s, _f) \
  27. DEFINE_PROP(_n, _s, _f, qdev_prop_tpm, TPMBackend *)
  28. #endif /* HW_TPM_PROP_H */