aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-03-24 12:13:32 +0100
committerGerd Hoffmann <kraxel@redhat.com>2020-05-15 13:55:29 +0200
commit654ba383b6b60545112190fb753314e79e80ad02 (patch)
tree4ebc94f4ffa46408a51c889afb0c48edf3218567 /src/util.h
parent2abf972ab60dd0e222722647aa4ed7abe257e874 (diff)
downloadseabios-hppa-654ba383b6b60545112190fb753314e79e80ad02.zip
seabios-hppa-654ba383b6b60545112190fb753314e79e80ad02.tar.gz
seabios-hppa-654ba383b6b60545112190fb753314e79e80ad02.tar.bz2
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.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 4f27fc3..0de3522 100644
--- a/src/util.h
+++ b/src/util.h
@@ -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;