xref: /freebsd/usr.sbin/bhyve/tpm_device.h (revision 783d3ff6d7fae619db8a7990b8a6387de0c677b5)
1 /*-
2  * SPDX-License-Identifier: BSD-2-Clause
3  *
4  * Copyright (c) 2023 Beckhoff Automation GmbH & Co. KG
5  * Author: Corvin Köhne <corvink@FreeBSD.org>
6  */
7 
8 #pragma once
9 
10 #include <vmmapi.h>
11 
12 #include "config.h"
13 
14 struct tpm_device;
15 
16 int tpm_device_create(struct tpm_device **new_dev, struct vmctx *vm_ctx,
17     nvlist_t *nvl);
18 void tpm_device_destroy(struct tpm_device *dev);
19 
20 int init_tpm(struct vmctx *ctx);
21