Home
last modified time | relevance | path

Searched refs:Aml (Results 1 – 25 of 57) sorted by relevance

123

/openbmc/qemu/include/hw/acpi/
H A Daml-build.h26 struct Aml { struct
263 Aml *init_aml_allocator(void);
289 void aml_append(Aml *parent_ctx, Aml *child);
292 Aml *aml_name(const char *name_format, ...) G_GNUC_PRINTF(1, 2);
293 Aml *aml_name_decl(const char *name, Aml *val);
294 Aml *aml_debug(void);
295 Aml *aml_return(Aml *val);
296 Aml *aml_int(const uint64_t val);
297 Aml *aml_arg(int pos);
298 Aml *aml_to_integer(Aml *arg);
[all …]
H A Dpci.h39 Aml *aml_pci_device_dsm(void);
41 void build_append_pci_bus_devices(Aml *parent_scope, PCIBus *bus);
42 void build_pci_bridge_aml(AcpiDevAmlIf *adev, Aml *scope);
H A Dacpi_aml_interface.h15 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 Dcxl.h27 void build_cxl_osc_method(Aml *dev);
28 void build_cxl_dsm_method(Aml *dev);
H A Dgeneric_event_device.h123 void build_ged_aml(Aml *table, const char* name, HotplugHandler *hotplug_dev,
125 void acpi_dsdt_add_power_button(Aml *scope);
/openbmc/qemu/hw/acpi/
H A Daml-build.c448 static Aml *aml_alloc(void) in aml_alloc()
450 Aml *var = g_new0(typeof(*var), 1); in aml_alloc()
458 static Aml *aml_opcode(uint8_t op) in aml_opcode()
460 Aml *var = aml_alloc(); in aml_opcode()
467 static Aml *aml_bundle(uint8_t op, AmlBlockFlags flags) in aml_bundle()
469 Aml *var = aml_alloc(); in aml_bundle()
478 Aml *var = data; in aml_free()
483 Aml *init_aml_allocator(void) in init_aml_allocator()
508 void aml_append(Aml *parent_ctx, Aml *child) in aml_append()
544 Aml *aml_scope(const char *name_format, ...) in aml_scope()
[all …]
H A Daml-build-stub.c25 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 Dcpu_hotplug.c121 void build_legacy_cpu_hotplug_aml(Aml *ctx, MachineState *machine, in build_legacy_cpu_hotplug_aml()
124 Aml *dev; in build_legacy_cpu_hotplug_aml()
125 Aml *crs; in build_legacy_cpu_hotplug_aml()
126 Aml *pkg; in build_legacy_cpu_hotplug_aml()
127 Aml *field; in build_legacy_cpu_hotplug_aml()
128 Aml *method; in build_legacy_cpu_hotplug_aml()
129 Aml *if_ctx; in build_legacy_cpu_hotplug_aml()
130 Aml *else_ctx; in build_legacy_cpu_hotplug_aml()
132 Aml *sb_scope = aml_scope("_SB"); in build_legacy_cpu_hotplug_aml()
134 Aml *cpu_id = aml_arg(1); in build_legacy_cpu_hotplug_aml()
[all …]
H A Dcpu.c340 void build_cpus_aml(Aml *table, MachineState *machine, CPUHotplugFeatures opts, in build_cpus_aml()
346 Aml *ifctx; in build_cpus_aml()
347 Aml *field; in build_cpus_aml()
348 Aml *method; in build_cpus_aml()
349 Aml *cpu_ctrl_dev; in build_cpus_aml()
350 Aml *cpus_dev; in build_cpus_aml()
351 Aml *zero = aml_int(0); in build_cpus_aml()
352 Aml *one = aml_int(1); in build_cpus_aml()
353 Aml *sb_scope = aml_scope("_SB"); in build_cpus_aml()
360 Aml *crs; in build_cpus_aml()
[all …]
H A Dmemory_hotplug.c333 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 Dcxl.c33 void build_cxl_dsm_method(Aml *dev) in build_cxl_dsm_method()
35 Aml *method, *ifctx, *ifctx2; in build_cxl_dsm_method()
39 Aml *function, *uuid; in build_cxl_dsm_method()
67 Aml *pak, *pak1; in build_cxl_dsm_method()
192 Aml *cedt = opaque; in cxl_foreach_pxb_hb()
205 Aml *cedt; in cxl_build_cedt()
225 static Aml *__build_cxl_osc_method(void) in __build_cxl_osc_method()
227 Aml *method, *if_uuid, *else_uuid, *if_arg1_not_1, *if_cxl, *if_caps_masked; in __build_cxl_osc_method()
228 Aml *a_ctrl = aml_local(0); in __build_cxl_osc_method()
229 Aml *a_cdw1 = aml_name("CDW1"); in __build_cxl_osc_method()
[all …]
H A Dipmi.c16 static Aml *aml_ipmi_crs(IPMIFwInfo *info) in aml_ipmi_crs()
18 Aml *crs = aml_resource_template(); in aml_ipmi_crs()
65 void build_ipmi_dev_aml(AcpiDevAmlIf *adev, Aml *scope) in build_ipmi_dev_aml()
67 Aml *dev; in build_ipmi_dev_aml()
H A Dgeneric_event_device.c41 void build_ged_aml(Aml *table, const char *name, HotplugHandler *hotplug_dev, in build_ged_aml()
45 Aml *crs = aml_resource_template(); in build_ged_aml()
46 Aml *evt, *field; in build_ged_aml()
47 Aml *dev = aml_device("%s", name); in build_ged_aml()
48 Aml *evt_sel = aml_local(0); in build_ged_aml()
49 Aml *esel = aml_name(AML_GED_EVT_SEL); in build_ged_aml()
90 Aml *if_ctx; in build_ged_aml()
148 void acpi_dsdt_add_power_button(Aml *scope) in acpi_dsdt_add_power_button()
150 Aml *dev = aml_device(ACPI_POWER_BUTTON_DEVICE); in acpi_dsdt_add_power_button()
/openbmc/qemu/hw/i386/
H A Dacpi-build.c340 Aml *aml_pci_device_dsm(void) in aml_pci_device_dsm()
342 Aml *method; in aml_pci_device_dsm()
346 Aml *params = aml_local(0); in aml_pci_device_dsm()
347 Aml *pkg = aml_package(2); in aml_pci_device_dsm()
363 static void build_append_pci_dsm_func0_common(Aml *ctx, Aml *retvar) in build_append_pci_dsm_func0_common()
365 Aml *UUID, *ifctx1; in build_append_pci_dsm_func0_common()
389 static Aml *aml_pci_edsm(void) in aml_pci_edsm()
391 Aml *method, *ifctx; in aml_pci_edsm()
392 Aml *zero = aml_int(0); in aml_pci_edsm()
393 Aml *func = aml_arg(2); in aml_pci_edsm()
[all …]
H A Dacpi-microvm.c49 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()
/openbmc/qemu/hw/pci-host/
H A Dgpex-acpi.c10 static void acpi_dsdt_add_pci_route_table(Aml *dev, uint32_t irq, in acpi_dsdt_add_pci_route_table()
11 Aml *scope, uint8_t bus_num) in acpi_dsdt_add_pci_route_table()
13 Aml *method, *crs; in acpi_dsdt_add_pci_route_table()
17 Aml *rt_pkg = aml_varpackage(PCI_SLOT_MAX * PCI_NUM_PINS); in acpi_dsdt_add_pci_route_table()
21 Aml *pkg = aml_package(4); in acpi_dsdt_add_pci_route_table()
34 Aml *dev_gsi = aml_device("L%.02X%X", bus_num, i); in acpi_dsdt_add_pci_route_table()
53 static void acpi_dsdt_add_pci_osc(Aml *dev) in acpi_dsdt_add_pci_osc()
55 Aml *method, *UUID, *ifctx, *ifctx1, *elsectx, *buf; in acpi_dsdt_add_pci_osc()
129 void acpi_dsdt_add_gpex(Aml *scope, struct GPEXConfig *cfg) in acpi_dsdt_add_gpex()
132 Aml *method, *crs, *dev, *rbuf; in acpi_dsdt_add_gpex()
[all …]
/openbmc/qemu/hw/nvram/
H A Dfw_cfg-acpi.c11 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 Dvirtio-acpi.c11 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/loongarch/
H A Dacpi-build.c294 static void build_uart_device_aml(Aml *table, int index) in build_uart_device_aml()
296 Aml *dev; in build_uart_device_aml()
297 Aml *crs; in build_uart_device_aml()
298 Aml *pkg0, *pkg1, *pkg2; in build_uart_device_aml()
299 Aml *scope; in build_uart_device_aml()
333 build_la_ged_aml(Aml *dsdt, MachineState *machine) in build_la_ged_aml()
352 static void build_pci_device_aml(Aml *scope, LoongArchVirtMachineState *lvms) in build_pci_device_aml()
368 static void build_flash_aml(Aml *scope, LoongArchVirtMachineState *lvms) in build_flash_aml()
370 Aml *dev, *crs; in build_flash_aml()
409 static void acpi_dsdt_add_tpm(Aml *scope, LoongArchVirtMachineState *vms) in acpi_dsdt_add_tpm()
[all …]
/openbmc/qemu/hw/riscv/
H A Dvirt-acpi-build.c118 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/arm/
H A Dvirt-acpi-build.c67 static void acpi_dsdt_add_cpus(Aml *scope, VirtMachineState *vms) in acpi_dsdt_add_cpus()
73 Aml *dev = aml_device("C%.03X", i); in acpi_dsdt_add_cpus()
80 static void acpi_dsdt_add_uart(Aml *scope, const MemMapEntry *uart_memmap, in acpi_dsdt_add_uart()
83 Aml *dev = aml_device("COM%d", uartidx); in acpi_dsdt_add_uart()
87 Aml *crs = aml_resource_template(); in acpi_dsdt_add_uart()
98 static void acpi_dsdt_add_flash(Aml *scope, const MemMapEntry *flash_memmap) in acpi_dsdt_add_flash()
100 Aml *dev, *crs; in acpi_dsdt_add_flash()
122 static void acpi_dsdt_add_pci(Aml *scope, const MemMapEntry *memmap, in acpi_dsdt_add_pci()
141 static void acpi_dsdt_add_gpio(Aml *scope, const MemMapEntry *gpio_memmap, in acpi_dsdt_add_gpio()
144 Aml *dev = aml_device("GPO0"); in acpi_dsdt_add_gpio()
[all …]
/openbmc/qemu/hw/display/
H A Dacpi-vga.c6 void build_vga_aml(AcpiDevAmlIf *adev, Aml *scope) in build_vga_aml()
9 Aml *method; in build_vga_aml()
/openbmc/qemu/hw/misc/
H A Dpvpanic-isa.c66 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 Dhcd-xhci-sysbus.c71 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/include/hw/pci-host/
H A Dgpex.h73 void acpi_dsdt_add_gpex(Aml *scope, struct GPEXConfig *cfg);
74 void acpi_dsdt_add_gpex_host(Aml *scope, uint32_t irq);

123