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