static void tpm_emulator_class_init(ObjectClass *klass, void *data) { TPMBackendClass *tbc = TPM_BACKEND_CLASS(klass); tbc->type = TPM_TYPE_EMULATOR; tbc->opts = tpm_emulator_cmdline_opts; tbc->desc = "TPM emulator backend driver"; tbc->create = tpm_emulator_create; tbc->startup_tpm = tpm_emulator_startup_tpm; tbc->cancel_cmd = tpm_emulator_cancel_cmd; tbc->get_tpm_established_flag = tpm_emulator_get_tpm_established_flag; tbc->reset_tpm_established_flag = tpm_emulator_reset_tpm_established_flag; tbc->get_tpm_version = tpm_emulator_get_tpm_version; tbc->get_buffer_size = tpm_emulator_get_buffer_size; tbc->get_tpm_options = tpm_emulator_get_tpm_options; tbc->handle_request = tpm_emulator_handle_request; }
static void tpm_passthrough_class_init(ObjectClass *klass, void *data) { TPMBackendClass *tbc = TPM_BACKEND_CLASS(klass); tbc->ops = &tpm_passthrough_driver; }
static void tpm_xenstubdoms_class_init(ObjectClass *klass, void *data) { TPMBackendClass *tbc = TPM_BACKEND_CLASS(klass); tbc->ops = &tpm_xenstubdoms_driver; }