Date: Mon, 23 Aug 2004 16:28:42 +0000 (UTC) From: Nate Lawson <njl@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/acpica acpi.c acpi_resource.c acpivar.h Message-ID: <200408231628.i7NGSg8G084516@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
njl 2004-08-23 16:28:42 UTC FreeBSD src repository Modified files: sys/dev/acpica acpi.c acpi_resource.c acpivar.h Log: 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 Revision Changes Path 1.189 +82 -7 src/sys/dev/acpica/acpi.c 1.31 +59 -115 src/sys/dev/acpica/acpi_resource.c 1.81 +0 -2 src/sys/dev/acpica/acpivar.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408231628.i7NGSg8G084516>