mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 18:56:38 +00:00
67c26eb2a5
At the moment, only a TPM passthru is supported. The cmdline looks like: -l tpm,passthru,/dev/tpm0 Reviewed by: markj MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D32961
21 lines
408 B
C
21 lines
408 B
C
/*-
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* Copyright (c) 2023 Beckhoff Automation GmbH & Co. KG
|
|
* Author: Corvin Köhne <corvink@FreeBSD.org>
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <vmmapi.h>
|
|
|
|
#include "config.h"
|
|
|
|
struct tpm_device;
|
|
|
|
int tpm_device_create(struct tpm_device **new_dev, struct vmctx *vm_ctx,
|
|
nvlist_t *nvl);
|
|
void tpm_device_destroy(struct tpm_device *dev);
|
|
|
|
int init_tpm(struct vmctx *ctx);
|