/openbmc/qemu/hw/acpi/ |
H A D | Kconfig | 1 config ACPI config 6 select ACPI 30 depends on ACPI 34 select ACPI 40 depends on ACPI 44 depends on ACPI && PCI && ACPI_PCIHP 48 depends on ACPI 52 depends on ACPI 56 depends on ACPI && PCI 70 depends on ACPI [all …]
|
H A D | meson.build | 10 acpi_ss.add(when: 'CONFIG_ACPI_CPU_HOTPLUG', if_false: files('acpi-cpu-hotplug-stub.c')) 12 acpi_ss.add(when: 'CONFIG_ACPI_MEMORY_HOTPLUG', if_false: files('acpi-mem-hotplug-stub.c')) 14 acpi_ss.add(when: 'CONFIG_ACPI_NVDIMM', if_false: files('acpi-nvdimm-stub.c')) 25 acpi_ss.add(when: 'CONFIG_ACPI_PCIHP', if_false: files('acpi-pci-hotplug-stub.c')) 30 acpi_ss.add(when: 'CONFIG_PC', if_false: files('acpi-x86-stub.c')) 34 system_ss.add(when: 'CONFIG_ACPI', if_false: files('acpi-stub.c', 'aml-build-stub.c', 'ghes-stub.c'… 37 system_ss.add(files('acpi-qmp-cmds.c'))
|
H A D | aml-build.c | 1 /* Support for generating ACPI tables and passing them to Guests 24 #include "hw/acpi/aml-build.h" 29 #include "hw/acpi/tpm.h" 228 * ACPI 5.0 spec: 20.2.2 Name Objects Encoding: in build_append_namestringv() 402 * ACPI 2.0/3.0: 5.2.3.1 Generic Address Structure 404 * @access_width must be 0, see ACPI 2.0:Table 5-1 526 * field is zero. [ACPI Spec 1.0b, 6.4.2.8 End Tag] in aml_append() 542 /* ACPI 1.0b: 16.2.5.1 Namespace Modifier Objects Encoding: DefScope */ 553 /* ACPI 1.0b: 16.2.5.3 Type 1 Opcodes Encoding: DefReturn */ 561 /* ACPI 1.0b: 16.2.6.3 Debug Objects Encoding: DebugObj */ [all …]
|
/openbmc/qemu/tests/functional/acpi-bits/bits-tests/ |
H A D | testacpi.py2 | 31 """Tests for ACPI""" 33 import acpi 42 …testsuite.add_test("ACPI _MAT (Multiple APIC Table Entry) under Processor objects", test_mat, subm… 43 # testsuite.add_test("ACPI _PSS (Pstate) table conformance tests", test_pss, submenu="ACPI Tests… 44 # testsuite.add_test("ACPI _PSS (Pstate) runtime tests", test_pstates, submenu="ACPI Tests") 45 …testsuite.add_test("ACPI DSDT (Differentiated System Description Table)", test_dsdt, submenu="ACPI… 46 testsuite.add_test("ACPI FACP (Fixed ACPI Description Table)", test_facp, submenu="ACPI Tests") 47 …testsuite.add_test("ACPI HPET (High Precision Event Timer Table)", test_hpet, submenu="ACPI Tests") 48 … testsuite.add_test("ACPI MADT (Multiple APIC Description Table)", test_apic, submenu="ACPI Tests") 49 testsuite.add_test("ACPI MPST (Memory Power State Table)", test_mpst, submenu="ACPI Tests") [all …]
|
/openbmc/u-boot/lib/efi_loader/ |
H A D | efi_acpi.c | 3 * EFI application ACPI tables support 15 * Install the ACPI table as a configuration table. 21 /* Map within the low 32 bits, to allow for 32bit ACPI tables */ in efi_acpi_register() 22 u64 acpi = U32_MAX; in efi_acpi_register() local 25 /* Reserve 64kiB page for ACPI */ in efi_acpi_register() 27 EFI_RUNTIME_SERVICES_DATA, 16, &acpi); in efi_acpi_register() 32 * Generate ACPI tables - we know that efi_allocate_pages() returns in efi_acpi_register() 36 assert(!(acpi & 0xf)); in efi_acpi_register() 37 write_acpi_tables(acpi); in efi_acpi_register() 41 (void *)(uintptr_t)acpi); in efi_acpi_register()
|
/openbmc/u-boot/arch/x86/include/asm/ |
H A D | acpi.h | 12 * acpi_find_fadt() - find ACPI FADT table in the system memory 14 * This routine parses the ACPI table to locate the ACPI FADT table. 16 * @return: a pointer to the ACPI FADT table in the system memory 23 * This routine parses the ACPI table to locate the wake up vector installed 26 * @fadt: a pointer to the ACPI FADT table in the system memory 32 * enter_acpi_mode() - enter into ACPI mode 34 * This programs the ACPI-defined PM1_CNT register to enable SCI interrupt 35 * so that the whole system swiches to ACPI mode.
|
H A D | acpi_s3.h | 49 * acpi_ss_string() - get ACPI-defined sleep state string 51 * @pm1_cnt: ACPI-defined sleep state 62 * acpi_sleep_from_pm1() - get ACPI-defined sleep state from PM1_CNT register 65 * @return: ACPI-defined sleep state if given valid PM1_CNT register value, 89 * This returns chipset previous sleep state from ACPI registers. 90 * Platform codes must supply this routine in order to support ACPI S3. 99 * This clears chipset sleep state in ACPI registers. 100 * Platform codes must supply this routine in order to support ACPI S3. 106 * acpi_resume() - Do ACPI S3 resume 110 * @fadt: FADT table pointer in the ACPI table [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Control/Power/ |
H A D | ACPIPowerState.interface.yaml | 2 Implement to set/get ACPI power status 6 type: enum[self.ACPI] 9 The ACPI system power status. 12 type: enum[self.ACPI] 15 The ACPI device power status. 18 - name: ACPI 20 Possible ACPI status. 59 Legacy On - used when ACPI mode is disabled. 62 Legacy Off - used when ACPI mode is disabled.
|
/openbmc/qemu/include/hw/acpi/ |
H A D | ghes.h | 25 #include "hw/acpi/bios-linker-loader.h" 42 /* CMCI, ACPI 5.0: 18.3.2.7, Table 18-290 */ 44 /* MCE, ACPI 5.0: 18.3.2.7, Table 18-290 */ 46 /* GPIO-Signal, ACPI 6.0: 18.3.2.7, Table 18-332 */ 48 /* ARMv8 SEA, ACPI 6.1: 18.3.2.9, Table 18-345 */ 50 /* ARMv8 SEI, ACPI 6.1: 18.3.2.9, Table 18-345 */ 52 /* External Interrupt - GSIV, ACPI 6.1: 18.3.2.9, Table 18-345 */ 54 /* Software Delegated Exception, ACPI 6.2: 18.3.2.9, Table 18-383 */ 80 * acpi_ghes_present: Report whether ACPI GHES table is present 82 * Returns: true if the system has an ACPI GHES table and it is
|
H A D | erst.h | 2 * ACPI Error Record Serialization Table, ERST, Implementation 4 * ACPI ERST introduced in ACPI 4.0, June 16, 2009. 5 * ACPI Platform Error Interfaces : Error Serialization 14 #include "hw/acpi/bios-linker-loader.h" 20 #define TYPE_ACPI_ERST "acpi-erst"
|
H A D | cpu_hotplug.h | 2 * QEMU ACPI hotplug utilities 16 #include "hw/acpi/acpi.h" 17 #include "hw/acpi/pc-hotplug.h" 18 #include "hw/acpi/aml-build.h" 20 #include "hw/acpi/cpu.h"
|
H A D | pcihp.h | 2 * QEMU<->ACPI BIOS PCI hotplug interface 4 * QEMU supports PCI hotplug via ACPI. This module 5 * implements the interface between QEMU and the ACPI BIOS. 30 #include "hw/acpi/acpi.h" 31 #include "hw/acpi/aml-build.h" 34 #define ACPI_PCIHP_IO_BASE_PROP "acpi-pcihp-io-base" 35 #define ACPI_PCIHP_IO_LEN_PROP "acpi-pcihp-io-len" 49 #define ACPI_PCIHP_PROP_BSEL "acpi-pcihp-bsel"
|
H A D | ich9.h | 24 #include "hw/acpi/acpi.h" 25 #include "hw/acpi/cpu_hotplug.h" 26 #include "hw/acpi/cpu.h" 27 #include "hw/acpi/pcihp.h" 28 #include "hw/acpi/memory_hotplug.h" 29 #include "hw/acpi/acpi_dev_interface.h" 30 #include "hw/acpi/ich9_tco.h"
|
H A D | piix4.h | 2 * ACPI implementation 26 #include "hw/acpi/acpi.h" 27 #include "hw/acpi/cpu_hotplug.h" 28 #include "hw/acpi/memory_hotplug.h" 29 #include "hw/acpi/pcihp.h"
|
H A D | acpi.h | 25 #include "hw/acpi/acpi_dev_interface.h" 32 /* from linux include/acpi/actype.h */ 33 /* Default ACPI register widths */ 50 #define ACPI_PM_PROP_ACPI_PCIHP_BRIDGE "acpi-pci-hotplug-with-bridge-support" 51 #define ACPI_PM_PROP_ACPI_PCI_ROOTHP "acpi-root-pci-hotplug" 57 /* ACPI fixed hardware registers */ 59 /* from linux/drivers/acpi/acpica/aclocal.h */ 69 #define ACPI_BITMASK_PCIEXP_WAKE_STATUS 0x4000 /* ACPI 3.0 */ 87 #define ACPI_BITMASK_PCIEXP_WAKE_DISABLE 0x4000 /* ACPI 3.0 */ 153 /* Return whether ACPI subsystem is built in */ [all …]
|
H A D | generic_event_device.h | 11 * The ACPI Generic Event Device (GED) is a hardware-reduced specific 12 * device[ACPI v6.1 Section 5.6.9] that handles all platform events, 14 * to handle interrupts in ACPI ASL statements. It follows a very 63 #include "hw/acpi/memory_hotplug.h" 64 #include "hw/acpi/ghes.h" 65 #include "hw/acpi/cpu.h" 66 #include "hw/acpi/pcihp.h" 71 #define TYPE_ACPI_GED "acpi-ged" 85 /* [ACPI 5.0 Chapter 4.8.3.7] Sleep Control and Status Register */
|
H A D | acpi_dev_interface.h | 4 #include "qapi/qapi-types-acpi.h" 18 #define TYPE_ACPI_DEVICE_IF "acpi-device-interface" 34 * ospm_status: returns status of ACPI device objects, reported 43 * to generic ACPI functionality that could be used without 45 * ACPI interface.
|
/openbmc/qemu/hw/i386/ |
H A D | acpi-microvm.c | 1 /* Support for generating ACPI tables and passing them to Guests 28 #include "hw/acpi/acpi.h" 29 #include "hw/acpi/acpi_aml_interface.h" 30 #include "hw/acpi/aml-build.h" 31 #include "hw/acpi/bios-linker-loader.h" 32 #include "hw/acpi/generic_event_device.h" 33 #include "hw/acpi/utils.h" 34 #include "hw/acpi/erst.h" 40 #include "hw/virtio/virtio-acpi.h" 44 #include "acpi-common.h" [all …]
|
H A D | acpi-common.c | 1 /* Support for generating ACPI tables and passing them to Guests 27 #include "hw/acpi/acpi.h" 28 #include "hw/acpi/aml-build.h" 29 #include "hw/acpi/utils.h" 32 #include "acpi-build.h" 33 #include "acpi-common.h" 43 /* ACPI spec says that LAPIC entry for non present in pc_madt_cpu_entry() 53 build_append_int_noprefix(entry, uid, 1); /* ACPI Processor ID */ in pc_madt_cpu_entry() 63 build_append_int_noprefix(entry, uid, 4); /* ACPI Processor UID */ in pc_madt_cpu_entry() 92 * ACPI spec, Revision 1.0b [all …]
|
/openbmc/qemu/docs/specs/ |
H A D | acpi_pci_hotplug.rst | 1 QEMU<->ACPI BIOS PCI hotplug interface 4 QEMU supports PCI hotplug via ACPI, for PCI bus 0. This document 5 describes the interface between QEMU and the ACPI BIOS. 7 ACPI GPE block (IO ports 0xafe0-0xafe3, byte access) 10 Generic ACPI GPE block. Bit 1 (GPE.1) used to notify PCI hotplug/eject 11 event to ACPI BIOS, via SCI interrupt. 18 Read by ACPI BIOS GPE.1 handler to notify OS of injection 26 Read by ACPI BIOS GPE.1 handler to notify OS of removal 32 Write: Used by ACPI BIOS _EJ0 method to request device removal. 47 Used by ACPI BIOS _RMV method to indicate removability status to OS. One
|
H A D | acpi_erst.rst | 1 ACPI ERST DEVICE 4 The ACPI ERST device is utilized to support the ACPI Error Record 9 The ACPI specification[1], in Chapter "ACPI Platform Error Interfaces 16 While the ACPI specification allows for an NVRAM "mode" (see 35 Two common storage backends for the pstore filesystem are ACPI ERST 36 and UEFI. Most BIOS implement ACPI ERST. UEFI is not utilized in all 37 guests. With QEMU supporting ACPI ERST, it becomes a viable pstore 41 Enabling support for ACPI ERST facilitates a consistent method to 46 Note that Microsoft Windows also utilizes the ACPI ERST for certain 53 To use ACPI ERST, a memory-backend-file object and acpi-erst device [all …]
|
/openbmc/qemu/qapi/ |
H A D | acpi.json | 10 # ACPI 17 # Specify an ACPI table on the command line to load. 24 # ACPI table header; refer to the ACPI specification 5.0, section 30 # String fields are copied into the matching ACPI member from lowest 51 # ACPI table header. At least one file is required. This field 55 # as table data. The resultant binary blob must not have an ACPI 109 # @query-acpi-ospm-status: 112 # reporting via ACPI _OST method. 118 # -> { "execute": "query-acpi-ospm-status" } 125 { 'command': 'query-acpi-ospm-status', 'returns': ['ACPIOSTInfo'] } [all …]
|
/openbmc/openbmc/meta-google/recipes-google/acpi-power-state-daemon/ |
H A D | acpi-power-state-daemon_git.bb | 1 SUMMARY = "ACPI Power/Sleep state daemon to allow host state events" 2 DESCRIPTION = "ACPI Power/Sleep state daemon to allow host state events" 3 GOOGLE_MISC_PROJ = "acpi-power-state-daemon" 16 acpi-power-state.service \
|
/openbmc/qemu/tests/qtest/ |
H A D | bios-tables-test.c | 14 * How to add or update the tests or commit changes that affect ACPI tables: 16 * 1. add empty files for new tables, if any, under tests/data/acpi 20 * Contributor or ACPI Maintainer (steps 4-7 need to be redone to resolve conflicts 29 * between actual and expected ACPI tables. If you have IASL installed, 38 * $(SRC_PATH)/tests/data/acpi/rebuild-expected-aml.sh 42 * introduces changes to ACPI tables. It lets the maintainer drop 49 * following changes to ACPI tables will be noticed. 62 #include "acpi-utils.h" 65 #include "hw/acpi/tpm.h" 91 uint8_t rsdp_table[36 /* ACPI 2.0+ RSDP size */]; [all …]
|
/openbmc/qemu/include/hw/mem/ |
H A D | nvdimm.h | 10 * NVDIMM ACPI device and NFIT are introduced in ACPI 6: 27 #include "hw/acpi/bios-linker-loader.h" 29 #include "hw/acpi/aml-build.h" 68 * guest via ACPI NFIT and _FIT method if NVDIMM hotplug is supported. 73 * The 'on' value results in the unarmed flag set in ACPI NFIT, 108 #define NVDIMM_DSM_MEM_FILE "etc/acpi/nvdimm-mem" 112 * NVDIMM ACPI emulation. 143 * Platform capabilities, section 5.2.25.9 of ACPI 6.2 Errata A
|