summaryrefslogtreecommitdiff
path: root/acpi/acpi.c
AgeCommit message (Collapse)Author
2023-02-02Avoid unaligned memory accessesSamuel Thibault
2022-09-12acpi: Remove references to /dev/memDamien Zammit
Message-Id: <20220912103837.556815-5-damien@zamaudio.com>
2022-09-12acpi: Link translator to libacpica and provide RPCsDamien Zammit
Provides two new acpi RPCs to sleep the machine and to get the irq of any pci device. ACPI mode is enabled by default when the translator is started. NB: Merging this commit means libacpica is a build dep. Message-Id: <20220912103837.556815-2-damien@zamaudio.com>
2022-02-12acpi: Remove erroneous MAP_FIXEDDamien Zammit
Reading the man page for mmap, MAP_FIXED needs to be removed, because we do not want the mapping to be placed at 0. Message-Id: <20220212215736.28433-1-damien@zamaudio.com>
2021-11-21acpi: Factorize codeAndrea Monaco
* acpi/acpi.c (acpi_get_tables): Factorize code.
2021-11-21acpi: Unignore some mmap failureAndrea Monaco
* acpi/acpi.c (acpi_get_num_tables): Do not ignore mmap failure.
2021-11-21acpi: Fix spurious munmap callAndrea Monaco
* acpi/acpi.c (acpi_get_num_tables, acpi_get_tables): Munmap is not needed, because when mmap_phys_acpi_header returns non-zero, no mmap is performed.
2021-11-18acpi: remove useless code in acpi.cAndrea Monaco
These were writing to an array and then never using it. Maybe they were useful for debugging. Message-Id: <87sfvtmn6r.fsf@autistici.org>
2019-03-02ACPI tables translatorDamien Zammit
Exposes x86 ACPI tables as a netfs on a mount point * acpi: New directory. * Makefile (prog-subdirs): Add acpi. * hurd/hurd_types.h (FSTYPE_ACPI): New macro.