diff options
author | njl <njl@FreeBSD.org> | 2004-08-23 16:28:42 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-08-23 16:28:42 +0000 |
commit | 1c3534c5709f8c9199ce0c76f07a3927ae840688 (patch) | |
tree | cb555f629ef72cec508c3c990afaa06917f0a01a /sys/dev/acpica/acpivar.h | |
parent | 0ffa60443668ac17eb7c8a579ba9cc6c00aa5fc8 (diff) | |
download | FreeBSD-src-1c3534c5709f8c9199ce0c76f07a3927ae840688.zip FreeBSD-src-1c3534c5709f8c9199ce0c76f07a3927ae840688.tar.gz |
Rework sysresource management. Instead of having each sysresource object
hold its own values, pass them up to the parent (acpi0) and merge/uniq them
on the way. After the namespace evaluation, acpi will reserve these
resources and manage them via rman before bus_generic_probe() and
bus_generic_attach(). This is necessary because some systems specify
conflicting resources in separate sysresource objects. It's also cleaner
in that the interface between sysresource and acpi is now merely the parent's
resource list. This code handles the following cases:
1. Unique resource: add it to the parent via bus_set_resource().
2. New wholly contained in old: discard new.
3. New tail overlaps old head: grow old head downward.
AND/OR
4. New head overlaps old tail: grow old tail upward.
Tested by: Pawel Worach <sajd_at_telia.com>
Tested by: Radek Kozlowski <radek_at_raadradd.com>
MFC after: 5 days
Diffstat (limited to 'sys/dev/acpica/acpivar.h')
-rw-r--r-- | sys/dev/acpica/acpivar.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h index 477f590..811c3ed 100644 --- a/sys/dev/acpica/acpivar.h +++ b/sys/dev/acpica/acpivar.h @@ -306,8 +306,6 @@ 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; -struct resource_list_entry *acpi_sysres_find(int type, u_long addr); /* ACPI event handling */ UINT32 acpi_event_power_button_sleep(void *context); |