-static TPMDriverOps const *be_drivers[TPM_TYPE__MAX];
-static bool tpm_models[TPM_MODEL__MAX];
-
-void tpm_register_model(enum TpmModel model)
-{
- tpm_models[model] = true;
-}
-
-static const TPMDriverOps *tpm_get_backend_driver(const char *type)
-{
- int i = qapi_enum_parse(&TpmType_lookup, type, -1, NULL);
-
- return i >= 0 ? be_drivers[i] : NULL;
-}
-
-#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)