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