| /openbmc/qemu/hw/acpi/ |
| H A D | aml-build-stub.c | 25 void aml_append(Aml *parent_ctx, Aml *child) in aml_append() 29 Aml *aml_return(Aml *val) in aml_return() 34 Aml *aml_method(const char *name, int arg_count, AmlSerializeFlag sflag) in aml_method() 39 Aml *aml_resource_template(void) in aml_resource_template() 44 Aml *aml_device(const char *name_format, ...) in aml_device() 49 Aml *aml_eisaid(const char *str) in aml_eisaid() 54 Aml *aml_name_decl(const char *name, Aml *val) in aml_name_decl() 59 Aml *aml_io(AmlIODecode dec, uint16_t min_base, uint16_t max_base, in aml_io() 65 Aml *aml_irq_no_flags(uint8_t irq) in aml_irq_no_flags() 70 Aml *aml_interrupt(AmlConsumerAndProducer con_and_pro, in aml_interrupt() [all …]
|
| H A D | pci-bridge.c | 20 void build_pci_bridge_aml(AcpiDevAmlIf *adev, Aml *scope) in build_pci_bridge_aml() 39 Aml *build_pci_bridge_edsm(void) in build_pci_bridge_edsm() 41 Aml *method, *ifctx; in build_pci_bridge_edsm() 42 Aml *zero = aml_int(0); in build_pci_bridge_edsm() 43 Aml *func = aml_arg(2); in build_pci_bridge_edsm() 44 Aml *ret = aml_local(0); in build_pci_bridge_edsm() 45 Aml *aidx = aml_local(1); in build_pci_bridge_edsm() 46 Aml *params = aml_arg(4); in build_pci_bridge_edsm() 70 Aml *pkg = aml_package(2); in build_pci_bridge_edsm()
|
| H A D | cpu_hotplug.c | 120 void build_legacy_cpu_hotplug_aml(Aml *ctx, MachineState *machine, in build_legacy_cpu_hotplug_aml() 123 Aml *dev; in build_legacy_cpu_hotplug_aml() 124 Aml *crs; in build_legacy_cpu_hotplug_aml() 125 Aml *pkg; in build_legacy_cpu_hotplug_aml() 126 Aml *field; in build_legacy_cpu_hotplug_aml() 127 Aml *method; in build_legacy_cpu_hotplug_aml() 128 Aml *if_ctx; in build_legacy_cpu_hotplug_aml() 129 Aml *else_ctx; in build_legacy_cpu_hotplug_aml() 131 Aml *sb_scope = aml_scope("_SB"); in build_legacy_cpu_hotplug_aml() 133 Aml *cpu_id = aml_arg(1); in build_legacy_cpu_hotplug_aml() [all …]
|
| H A D | cpu.c | 341 void build_cpus_aml(Aml *table, MachineState *machine, CPUHotplugFeatures opts, in build_cpus_aml() 347 Aml *ifctx; in build_cpus_aml() 348 Aml *field; in build_cpus_aml() 349 Aml *method; in build_cpus_aml() 350 Aml *cpu_ctrl_dev; in build_cpus_aml() 351 Aml *cpus_dev; in build_cpus_aml() 352 Aml *zero = aml_int(0); in build_cpus_aml() 353 Aml *one = aml_int(1); in build_cpus_aml() 354 Aml *sb_scope = aml_scope("_SB"); in build_cpus_aml() 361 Aml *crs; in build_cpus_aml() [all …]
|
| H A D | memory_hotplug.c | 333 void build_memory_hotplug_aml(Aml *table, uint32_t nr_mem, in build_memory_hotplug_aml() 339 Aml *ifctx; in build_memory_hotplug_aml() 340 Aml *method; in build_memory_hotplug_aml() 341 Aml *dev_container; in build_memory_hotplug_aml() 342 Aml *mem_ctrl_dev; in build_memory_hotplug_aml() 348 Aml *crs; in build_memory_hotplug_aml() 376 Aml *field; in build_memory_hotplug_aml() 377 Aml *one = aml_int(1); in build_memory_hotplug_aml() 378 Aml *zero = aml_int(0); in build_memory_hotplug_aml() 379 Aml *ret_val = aml_local(0); in build_memory_hotplug_aml() [all …]
|
| H A D | pcihp.c | 514 void build_append_pci_dsm_func0_common(Aml *ctx, Aml *retvar) in build_append_pci_dsm_func0_common() 516 Aml *UUID, *ifctx1; in build_append_pci_dsm_func0_common() 540 static Aml *aml_pci_pdsm(void) in aml_pci_pdsm() 542 Aml *method, *ifctx, *ifctx1; in aml_pci_pdsm() 543 Aml *ret = aml_local(0); in aml_pci_pdsm() 544 Aml *caps = aml_local(1); in aml_pci_pdsm() 545 Aml *acpi_index = aml_local(2); in aml_pci_pdsm() 546 Aml *zero = aml_int(0); in aml_pci_pdsm() 547 Aml *one = aml_int(1); in aml_pci_pdsm() 548 Aml *not_supp = aml_int(0xFFFFFFFF); in aml_pci_pdsm() [all …]
|
| H A D | cxl.c | 34 void build_cxl_dsm_method(Aml *dev) in build_cxl_dsm_method() 36 Aml *method, *ifctx, *ifctx2; in build_cxl_dsm_method() 40 Aml *function, *uuid; in build_cxl_dsm_method() 68 Aml *pak, *pak1; in build_cxl_dsm_method() 139 static void cedt_build_cfmws(CXLFixedWindow *fw, Aml *cedt) in cedt_build_cfmws() 190 Aml *cedt = opaque; in cxl_foreach_pxb_hb() 204 Aml *cedt; in cxl_build_cedt() 229 static Aml *__build_cxl_osc_method(void) in __build_cxl_osc_method() 231 Aml *method, *if_uuid, *else_uuid, *if_arg1_not_1, *if_cxl, *if_caps_masked; in __build_cxl_osc_method() 232 Aml *a_ctrl = aml_local(0); in __build_cxl_osc_method() [all …]
|
| H A D | ipmi.c | 16 static Aml *aml_ipmi_crs(IPMIFwInfo *info) in aml_ipmi_crs() 18 Aml *crs = aml_resource_template(); in aml_ipmi_crs() 66 void build_ipmi_dev_aml(AcpiDevAmlIf *adev, Aml *scope) in build_ipmi_dev_aml() 68 Aml *dev; in build_ipmi_dev_aml()
|
| H A D | pci.c | 305 Aml *build_pci_host_bridge_osc_method(bool enable_native_pcie_hotplug) in build_pci_host_bridge_osc_method() 307 Aml *if_ctx; in build_pci_host_bridge_osc_method() 308 Aml *if_ctx2; in build_pci_host_bridge_osc_method() 309 Aml *else_ctx; in build_pci_host_bridge_osc_method() 310 Aml *method; in build_pci_host_bridge_osc_method() 311 Aml *a_cwd1 = aml_name("CDW1"); in build_pci_host_bridge_osc_method() 312 Aml *a_ctrl = aml_local(0); in build_pci_host_bridge_osc_method()
|
| H A D | cxl-stub.c | 9 void build_cxl_osc_method(Aml *dev) in build_cxl_osc_method()
|
| H A D | ipmi-stub.c | 13 void build_ipmi_dev_aml(AcpiDevAmlIf *adev, Aml *scope) in build_ipmi_dev_aml()
|
| /openbmc/qemu/include/hw/acpi/ |
| H A D | pcihp.h | 79 void build_acpi_pci_hotplug(Aml *table, AmlRegionSpace rs, uint64_t pcihp_addr); 80 void build_append_pci_dsm_func0_common(Aml *ctx, Aml *retvar); 81 void build_append_pcihp_resources(Aml *table, 83 bool build_append_notification_callback(Aml *parent_scope, const PCIBus *bus); 85 void build_append_pci_bus_devices(Aml *parent_scope, PCIBus *bus); 90 void build_append_pcihp_slots(Aml *parent_scope, PCIBus *bus);
|
| H A D | pci.h | 40 void build_pci_bridge_aml(AcpiDevAmlIf *adev, Aml *scope); 44 Aml *build_pci_host_bridge_osc_method(bool enable_native_pcie_hotplug); 45 Aml *build_pci_bridge_edsm(void);
|
| H A D | acpi_aml_interface.h | 15 typedef void (*dev_aml_fn)(AcpiDevAmlIf *adev, Aml *scope); 42 static inline void call_dev_aml_func(DeviceState *dev, Aml *scope) in call_dev_aml_func() 50 void qbus_build_aml(BusState *bus, Aml *scope);
|
| H A D | cxl.h | 27 void build_cxl_osc_method(Aml *dev); 28 void build_cxl_dsm_method(Aml *dev);
|
| /openbmc/qemu/hw/pci-host/ |
| H A D | gpex-acpi.c | 11 static void acpi_dsdt_add_pci_route_table(Aml *dev, uint32_t irq, in acpi_dsdt_add_pci_route_table() 12 Aml *scope, uint8_t bus_num) in acpi_dsdt_add_pci_route_table() 14 Aml *method, *crs; in acpi_dsdt_add_pci_route_table() 18 Aml *rt_pkg = aml_varpackage(PCI_SLOT_MAX * PCI_NUM_PINS); in acpi_dsdt_add_pci_route_table() 22 Aml *pkg = aml_package(4); in acpi_dsdt_add_pci_route_table() 35 Aml *dev_gsi = aml_device("L%.02X%X", bus_num, i); in acpi_dsdt_add_pci_route_table() 54 static Aml *build_pci_host_bridge_dsm_method(void) in build_pci_host_bridge_dsm_method() 56 Aml *method = aml_method("_DSM", 4, AML_NOTSERIALIZED); in build_pci_host_bridge_dsm_method() 57 Aml *UUID, *ifctx, *ifctx1, *buf; in build_pci_host_bridge_dsm_method() 79 static void acpi_dsdt_add_host_bridge_methods(Aml *dev, in acpi_dsdt_add_host_bridge_methods() [all …]
|
| /openbmc/qemu/hw/nvram/ |
| H A D | fw_cfg-acpi.c | 11 void fw_cfg_acpi_dsdt_add(Aml *scope, const MemMapEntry *fw_cfg_memmap) in fw_cfg_acpi_dsdt_add() 13 Aml *dev = aml_device("FWCF"); in fw_cfg_acpi_dsdt_add() 19 Aml *crs = aml_resource_template(); in fw_cfg_acpi_dsdt_add()
|
| /openbmc/qemu/hw/virtio/ |
| H A D | virtio-acpi.c | 11 void virtio_acpi_dsdt_add(Aml *scope, const hwaddr base, const hwaddr size, in virtio_acpi_dsdt_add() 19 Aml *dev = aml_device("VR%02u", (unsigned)i); in virtio_acpi_dsdt_add() 24 Aml *crs = aml_resource_template(); in virtio_acpi_dsdt_add()
|
| /openbmc/qemu/hw/display/ |
| H A D | acpi-vga.c | 6 void build_vga_aml(AcpiDevAmlIf *adev, Aml *scope) in build_vga_aml() 9 Aml *method; in build_vga_aml()
|
| /openbmc/qemu/include/hw/pci-host/ |
| H A D | gpex.h | 73 void acpi_dsdt_add_gpex(Aml *scope, struct GPEXConfig *cfg); 74 void acpi_dsdt_add_gpex_host(Aml *scope, uint32_t irq);
|
| /openbmc/qemu/hw/riscv/ |
| H A D | virt-acpi-build.c | 118 static void acpi_dsdt_add_cpus(Aml *scope, RISCVVirtState *s) in acpi_dsdt_add_cpus() 125 Aml *dev; in acpi_dsdt_add_cpus() 144 static void acpi_dsdt_add_plic_aplic(Aml *scope, uint8_t socket_count, in acpi_dsdt_add_plic_aplic() 155 Aml *dev = aml_device("IC%.02X", socket); in acpi_dsdt_add_plic_aplic() 160 Aml *crs = aml_resource_template(); in acpi_dsdt_add_plic_aplic() 169 acpi_dsdt_add_uart(Aml *scope, const MemMapEntry *uart_memmap, in acpi_dsdt_add_uart() 172 Aml *dev = aml_device("COM0"); in acpi_dsdt_add_uart() 176 Aml *crs = aml_resource_template(); in acpi_dsdt_add_uart() 184 Aml *pkg = aml_package(2); in acpi_dsdt_add_uart() 188 Aml *UUID = aml_touuid("DAFFD814-6EBA-4D8C-8A91-BC9BBF4AA301"); in acpi_dsdt_add_uart() [all …]
|
| /openbmc/qemu/hw/misc/ |
| H A D | pvpanic-isa.c | 66 static void build_pvpanic_isa_aml(AcpiDevAmlIf *adev, Aml *scope) in build_pvpanic_isa_aml() 68 Aml *crs, *field, *method; in build_pvpanic_isa_aml() 70 Aml *dev = aml_device("PEVT"); in build_pvpanic_isa_aml()
|
| /openbmc/qemu/hw/usb/ |
| H A D | hcd-xhci-sysbus.c | 71 void xhci_sysbus_build_aml(Aml *scope, uint32_t mmio, unsigned int irq) in xhci_sysbus_build_aml() 73 Aml *dev = aml_device("XHCI"); in xhci_sysbus_build_aml() 74 Aml *crs = aml_resource_template(); in xhci_sysbus_build_aml()
|
| /openbmc/qemu/hw/block/ |
| H A D | fdc-isa.c | 155 static Aml *build_fdinfo_aml(int idx, FloppyDriveType type) in build_fdinfo_aml() 157 Aml *dev, *fdi; in build_fdinfo_aml() 236 static void build_fdc_aml(AcpiDevAmlIf *adev, Aml *scope) in build_fdc_aml() 239 Aml *dev; in build_fdc_aml() 240 Aml *crs; in build_fdc_aml()
|
| /openbmc/qemu/hw/i386/ |
| H A D | acpi-microvm.c | 49 static void acpi_dsdt_add_virtio(Aml *scope, in acpi_dsdt_add_virtio() 86 static void acpi_dsdt_add_xhci(Aml *scope, MicrovmMachineState *mms) in acpi_dsdt_add_xhci() 93 static void acpi_dsdt_add_pci(Aml *scope, MicrovmMachineState *mms) in acpi_dsdt_add_pci() 107 Aml *dsdt, *sb_scope, *scope, *pkg; in build_dsdt_microvm()
|