aboutsummaryrefslogtreecommitdiff
path: root/acpi/acpi.c
Commit message (Collapse)AuthorAgeFilesLines
* Avoid unaligned memory accessesSamuel Thibault2023-02-021-6/+10
|
* acpi: Remove references to /dev/memDamien Zammit2022-09-121-75/+34
| | | | Message-Id: <20220912103837.556815-5-damien@zamaudio.com>
* acpi: Link translator to libacpica and provide RPCsDamien Zammit2022-09-121-1/+1
| | | | | | | | | 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>
* acpi: Remove erroneous MAP_FIXEDDamien Zammit2022-02-121-3/+3
| | | | | | | 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>
* acpi: Factorize codeAndrea Monaco2021-11-211-8/+5
| | | | * acpi/acpi.c (acpi_get_tables): Factorize code.
* acpi: Unignore some mmap failureAndrea Monaco2021-11-211-0/+5
| | | | * acpi/acpi.c (acpi_get_num_tables): Do not ignore mmap failure.
* acpi: Fix spurious munmap callAndrea Monaco2021-11-211-2/+0
| | | | | * 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.
* acpi: remove useless code in acpi.cAndrea Monaco2021-11-181-4/+0
| | | | | | | These were writing to an array and then never using it. Maybe they were useful for debugging. Message-Id: <87sfvtmn6r.fsf@autistici.org>
* ACPI tables translatorDamien Zammit2019-03-021-0/+290
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.