Lines Matching refs:lvms
109 LoongArchVirtMachineState *lvms) in build_madt() argument
111 MachineState *ms = MACHINE(lvms); in build_madt()
115 AcpiTable table = { .sig = "APIC", .rev = 1, .oem_id = lvms->oem_id, in build_madt()
116 .oem_table_id = lvms->oem_table_id }; in build_madt()
172 LoongArchVirtMachineState *lvms = LOONGARCH_VIRT_MACHINE(machine); in build_srat() local
173 MachineClass *mc = MACHINE_GET_CLASS(lvms); in build_srat()
175 AcpiTable table = { .sig = "SRAT", .rev = 1, .oem_id = lvms->oem_id, in build_srat()
176 .oem_table_id = lvms->oem_table_id }; in build_srat()
293 LoongArchVirtMachineState *lvms = LOONGARCH_VIRT_MACHINE(machine); in build_la_ged_aml() local
296 HOTPLUG_HANDLER(lvms->acpi_ged), in build_la_ged_aml()
299 event = object_property_get_uint(OBJECT(lvms->acpi_ged), in build_la_ged_aml()
309 static void build_pci_device_aml(Aml *scope, LoongArchVirtMachineState *lvms) in build_pci_device_aml() argument
319 .bus = lvms->pci_bus, in build_pci_device_aml()
325 static void build_flash_aml(Aml *scope, LoongArchVirtMachineState *lvms) in build_flash_aml() argument
336 flash_mem = pflash_cfi01_get_memory(lvms->flash[0]); in build_flash_aml()
340 flash_mem = pflash_cfi01_get_memory(lvms->flash[1]); in build_flash_aml()
405 LoongArchVirtMachineState *lvms = LOONGARCH_VIRT_MACHINE(machine); in build_dsdt() local
406 AcpiTable table = { .sig = "DSDT", .rev = 1, .oem_id = lvms->oem_id, in build_dsdt()
407 .oem_table_id = lvms->oem_table_id }; in build_dsdt()
412 build_pci_device_aml(dsdt, lvms); in build_dsdt()
414 build_flash_aml(dsdt, lvms); in build_dsdt()
416 acpi_dsdt_add_tpm(dsdt, lvms); in build_dsdt()
435 LoongArchVirtMachineState *lvms = LOONGARCH_VIRT_MACHINE(machine); in acpi_build() local
469 lvms->oem_id, lvms->oem_table_id); in acpi_build()
472 build_madt(tables_blob, tables->linker, lvms); in acpi_build()
476 lvms->oem_id, lvms->oem_table_id); in acpi_build()
484 build_slit(tables_blob, tables->linker, machine, lvms->oem_id, in acpi_build()
485 lvms->oem_table_id); in acpi_build()
490 lvms->oem_id, lvms->oem_table_id); in acpi_build()
500 build_mcfg(tables_blob, tables->linker, &mcfg, lvms->oem_id, in acpi_build()
501 lvms->oem_table_id); in acpi_build()
509 tables->tcpalog, lvms->oem_id, in acpi_build()
510 lvms->oem_table_id); in acpi_build()
524 lvms->oem_id, lvms->oem_table_id); in acpi_build()
530 .oem_id = lvms->oem_id, in acpi_build()
607 static bool loongarch_is_acpi_enabled(LoongArchVirtMachineState *lvms) in loongarch_is_acpi_enabled() argument
609 if (lvms->acpi == ON_OFF_AUTO_OFF) { in loongarch_is_acpi_enabled()
615 void loongarch_acpi_setup(LoongArchVirtMachineState *lvms) in loongarch_acpi_setup() argument
620 if (!lvms->fw_cfg) { in loongarch_acpi_setup()
625 if (!loongarch_is_acpi_enabled(lvms)) { in loongarch_acpi_setup()
633 acpi_build(&tables, MACHINE(lvms)); in loongarch_acpi_setup()
649 fw_cfg_add_file(lvms->fw_cfg, ACPI_BUILD_TPMLOG_FILE, tables.tcpalog->data, in loongarch_acpi_setup()