diff options
Diffstat (limited to 'sys/dev/ic/tpmvar.h')
| -rw-r--r-- | sys/dev/ic/tpmvar.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/sys/dev/ic/tpmvar.h b/sys/dev/ic/tpmvar.h index c8df058e05b..f655efe48ea 100644 --- a/sys/dev/ic/tpmvar.h +++ b/sys/dev/ic/tpmvar.h @@ -1,4 +1,4 @@ -/* $NetBSD: tpmvar.h,v 1.4.2.1 2019/10/16 09:52:38 martin Exp $ */ +/* $NetBSD: tpmvar.h,v 1.4.2.2 2022/08/03 16:00:47 martin Exp $ */ /* * Copyright (c) 2019 The NetBSD Foundation, Inc. @@ -29,6 +29,11 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#ifndef DEV_IC_TPMVAR_H +#define DEV_IC_TPMVAR_H + +#include <sys/types.h> + #define TPM_API_VERSION 1 enum tpm_version { @@ -54,6 +59,12 @@ struct tpm_ioc_getinfo { #ifdef _KERNEL +#include <sys/bus.h> +#include <sys/device_if.h> +#include <sys/mutex.h> +#include <sys/rndsource.h> +#include <sys/workqueue.h> + struct tpm_softc; struct tpm_intf { @@ -82,9 +93,17 @@ struct tpm_softc { uint32_t sc_rev; uint32_t sc_status; uint32_t sc_caps; + + struct krndsource sc_rnd; + struct workqueue *sc_rndwq; + struct work sc_rndwk; + volatile unsigned sc_rndpending; + bool sc_rnddisabled; }; bool tpm_suspend(device_t, const pmf_qual_t *); bool tpm_resume(device_t, const pmf_qual_t *); #endif + +#endif /* DEV_IC_TPMVAR_H */ |
