xref: /freebsd/usr.sbin/bhyve/tpm_ppi.h (revision 85a775e61b98f4c49abe437fb66b205a39f7581f)
1*85a775e6SCorvin Köhne /*-
2*85a775e6SCorvin Köhne  * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3*85a775e6SCorvin Köhne  *
4*85a775e6SCorvin Köhne  * Copyright (c) 2022 Beckhoff Automation GmbH & Co. KG
5*85a775e6SCorvin Köhne  * Author: Corvin Köhne <c.koehne@beckhoff.com>
6*85a775e6SCorvin Köhne  */
7*85a775e6SCorvin Köhne 
8*85a775e6SCorvin Köhne #pragma once
9*85a775e6SCorvin Köhne 
10*85a775e6SCorvin Köhne #include "config.h"
11*85a775e6SCorvin Köhne 
12*85a775e6SCorvin Köhne struct tpm_ppi {
13*85a775e6SCorvin Köhne 	const char *name;
14*85a775e6SCorvin Köhne 
15*85a775e6SCorvin Köhne 	int (*init)(void **sc);
16*85a775e6SCorvin Köhne 	void (*deinit)(void *sc);
17*85a775e6SCorvin Köhne 	int (*write_dsdt_regions)(void *sc);
18*85a775e6SCorvin Köhne 	int (*write_dsdt_dsm)(void *sc);
19*85a775e6SCorvin Köhne };
20*85a775e6SCorvin Köhne #define TPM_PPI_SET(x) DATA_SET(tpm_ppi_set, x)
21