|
root / base / usr / src / cmd / bhyve / common / tpm_ppi.h
tpm_ppi.h C 21 lines 405 B
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
/*-
 * SPDX-License-Identifier: BSD-2-Clause
 *
 * Copyright (c) 2022 Beckhoff Automation GmbH & Co. KG
 * Author: Corvin Köhne <c.koehne@beckhoff.com>
 */

#pragma once

#include "config.h"

struct tpm_ppi {
	const char *name;

	int (*init)(void **sc);
	void (*deinit)(void *sc);
	int (*write_dsdt_regions)(void *sc);
	int (*write_dsdt_dsm)(void *sc);
};
#define TPM_PPI_SET(x) DATA_SET(tpm_ppi_set, x)