static void tpm_emulator_register(void)
{
type_register_static(&tpm_emulator_info);
- tpm_register_driver(&tpm_emulator_driver);
}
type_init(tpm_emulator_register)
static void tpm_passthrough_register(void)
{
type_register_static(&tpm_passthrough_info);
- tpm_register_driver(&tpm_passthrough_driver);
}
type_init(tpm_passthrough_register)
static QLIST_HEAD(, TPMBackend) tpm_backends =
QLIST_HEAD_INITIALIZER(tpm_backends);
-static TPMDriverOps const *be_drivers[TPM_TYPE__MAX];
static bool tpm_models[TPM_MODEL__MAX];
void tpm_register_model(enum TpmModel model)
#ifdef CONFIG_TPM
-void tpm_register_driver(const TPMDriverOps *tdo)
-{
- assert(!be_drivers[tdo->type]);
-
- be_drivers[tdo->type] = tdo;
-}
-
static const TPMDriverOps *
tpm_driver_find_by_type(enum TpmType type)
{