xref: /openbmc/qemu/include/hw/acpi/tpm.h (revision bd50530a)
1 /*
2  * tpm.h - TPM ACPI definitions
3  *
4  * Copyright (C) 2014 IBM Corporation
5  *
6  * Authors:
7  *  Stefan Berger <stefanb@us.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  * Implementation of the TIS interface according to specs found at
13  * http://www.trustedcomputinggroup.org
14  *
15  */
16 #ifndef HW_ACPI_TPM_H
17 #define HW_ACPI_TPM_H
18 
19 #define TPM_TIS_ADDR_BASE           0xFED40000
20 #define TPM_TIS_ADDR_SIZE           0x5000
21 
22 #define TPM_TIS_IRQ                 5
23 
24 #define TPM_LOG_AREA_MINIMUM_SIZE   (64 * 1024)
25 
26 #define TPM_TCPA_ACPI_CLASS_CLIENT  0
27 #define TPM_TCPA_ACPI_CLASS_SERVER  1
28 
29 #define TPM2_ACPI_CLASS_CLIENT      0
30 #define TPM2_ACPI_CLASS_SERVER      1
31 
32 #define TPM2_START_METHOD_MMIO      6
33 
34 #endif /* HW_ACPI_TPM_H */
35