mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-31 12:07:31 +00:00 
			
		
		
		
	 5cb18b3d7b
			
		
	
	
		5cb18b3d7b
		
	
	
	
	
		
			
			Add a TPM2 ACPI table if a TPM 2 is used in the backend. Also add an SSDT for the TPM 2. Rename tpm_find() to tpm_get_version() and have this function return the version of the TPM found, TPMVersion_Unspec if no TPM is found. Use the version number to build version specific ACPI tables. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
		
			
				
	
	
		
			30 lines
		
	
	
		
			1010 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			1010 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /*
 | |
|  * This program is free software; you can redistribute it and/or modify
 | |
|  * it under the terms of the GNU General Public License as published by
 | |
|  * the Free Software Foundation; either version 2 of the License, or
 | |
|  * (at your option) any later version.
 | |
| 
 | |
|  * This program is distributed in the hope that it will be useful,
 | |
|  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
|  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | |
|  * GNU General Public License for more details.
 | |
| 
 | |
|  * You should have received a copy of the GNU General Public License along
 | |
|  * with this program; if not, see <http://www.gnu.org/licenses/>.
 | |
|  */
 | |
| #include "hw/acpi/tpm.h"
 | |
| 
 | |
| ACPI_EXTRACT_ALL_CODE ssdt_tpm_aml
 | |
| 
 | |
| DefinitionBlock (
 | |
|     "ssdt-tpm.aml",     // Output Filename
 | |
|     "SSDT",             // Signature
 | |
|     0x01,               // SSDT Compliance Revision
 | |
|     "BXPC",             // OEMID
 | |
|     "BXSSDT",           // TABLE ID
 | |
|     0x1                 // OEM Revision
 | |
|     )
 | |
| {
 | |
| #include "ssdt-tpm-common.dsl"
 | |
| }
 |