diff options
author | jhb <jhb@FreeBSD.org> | 2004-06-23 17:21:02 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2004-06-23 17:21:02 +0000 |
commit | cb992566cac1c44f62a47bbee7ec9f4a2fe7db53 (patch) | |
tree | 4678bf05661b8093ed227e74131c0db158f84795 /sys/dev/acpica/acpivar.h | |
parent | 22d8e1a72ee83a4d20da2cc201b27d2d2494eba5 (diff) | |
download | FreeBSD-src-cb992566cac1c44f62a47bbee7ec9f4a2fe7db53.zip FreeBSD-src-cb992566cac1c44f62a47bbee7ec9f4a2fe7db53.tar.gz |
- Defer BUS_CONFIG_INTR() on ACPI IRQ resources until the resources are
actually used. For most ACPI devices this means deferring the call
until bus_alloc_resource().
- Add a function acpi_config_intr() to call BUS_CONFIG_INTR() for an
ACPI IRQ resource using the trigger mode and polarity information
stored in the ACPI resource object.
- Add a function acpi_lookup_irq_resource() to lookup the ACPI IRQ
resource that corresponds to a specified rid and new-bus resource.
- Have the ACPI PCI bridge driver call BUS_CONFIG_INTR() on interrupts
that it routes through link devices.
- Remove needactivate variable from acpi_alloc_resource() by changing the
function not modify the flags variable but just mask off RF_ACTIVE when
calling rman_reserve_resource().
Reviewed by: njl (1, an earlier version)
Diffstat (limited to 'sys/dev/acpica/acpivar.h')
-rw-r--r-- | sys/dev/acpica/acpivar.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h index c0bc481..7d0b1d3 100644 --- a/sys/dev/acpica/acpivar.h +++ b/sys/dev/acpica/acpivar.h @@ -268,6 +268,10 @@ struct acpi_parse_resource_set { }; extern struct acpi_parse_resource_set acpi_res_parse_set; + +void acpi_config_intr(device_t dev, ACPI_RESOURCE *res); +ACPI_STATUS acpi_lookup_irq_resource(device_t dev, int rid, + struct resource *res, ACPI_RESOURCE *acpi_res); ACPI_STATUS acpi_parse_resources(device_t dev, ACPI_HANDLE handle, struct acpi_parse_resource_set *set, void *arg); extern struct rman acpi_rman_io, acpi_rman_mem; |