85a775e61b
Windows requires a physical presence interface to recognize the TPM device. Qemu's OVMF has an implementation for the PPI which can be reused. Using the Qemu PPI makes it very easy because we don't have to implement new PPI functionality into our OVMF. The Qemu implementation is already there. Reviewed by: markj MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D40462
21 lines
413 B
C
21 lines
413 B
C
/*-
|
|
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
|
*
|
|
* 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)
|