diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-03-24 12:13:32 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-05-15 13:55:29 +0200 |
commit | 654ba383b6b60545112190fb753314e79e80ad02 (patch) | |
tree | 4ebc94f4ffa46408a51c889afb0c48edf3218567 /src/util.h | |
parent | 2abf972ab60dd0e222722647aa4ed7abe257e874 (diff) | |
download | seabios-654ba383b6b60545112190fb753314e79e80ad02.tar.gz |
acpi: add dsdt parser
Create a list of devices found in the DSDT table. Add helper functions
to find devices, walk the list and figure device informations like mmio
ranges and irqs.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -94,6 +94,17 @@ void display_uuid(void); void copy_table(void *pos); void smbios_setup(void); +// fw/dsdt_parser.c +struct acpi_device; +void acpi_dsdt_parse(void); +struct acpi_device *acpi_dsdt_find_string(struct acpi_device *prev, const char *hid); +struct acpi_device *acpi_dsdt_find_eisaid(struct acpi_device *prev, u16 eisaid); +char *acpi_dsdt_name(struct acpi_device *dev); +int acpi_dsdt_present_eisaid(u16 eisaid); +int acpi_dsdt_find_io(struct acpi_device *dev, u64 *min, u64 *max); +int acpi_dsdt_find_mem(struct acpi_device *dev, u64 *min, u64 *max); +int acpi_dsdt_find_irq(struct acpi_device *dev, u64 *irq); + // fw/coreboot.c extern const char *CBvendor, *CBpart; struct cbfs_file; |