summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_ec.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-06-13 22:52:30 +0000
committernjl <njl@FreeBSD.org>2004-06-13 22:52:30 +0000
commitd49f147c3f337c27d40d40e625f0b8895b9c6c0f (patch)
treed2dac6905b64b7bcc7fe4fdc69df38b6c7dc9629 /sys/dev/acpica/acpi_ec.c
parent05af3d5b81d06efd1f5a8cf33121efd504b922c0 (diff)
downloadFreeBSD-src-d49f147c3f337c27d40d40e625f0b8895b9c6c0f.zip
FreeBSD-src-d49f147c3f337c27d40d40e625f0b8895b9c6c0f.tar.gz
Add support to ACPI to manage its own resources. Previously, resource
allocation was passed up to nexus. Now, we probe sysresource objects and manage the resources they describe in a local rman pool. This helps devices which attach/detach varying resources (like the _CST object) and module loads/unloads. The allocation/release routines now check to see if the resource is described in a child sysresource object and if so, allocate from the local rman. Sysresource objects add their resources to the pool and reserve them upon boot. This means sysresources need to be probed before other ACPI devices. Changes include: * Add ordering to the child device probe. The current order is: system resource objects, embedded controllers, then everything else. * Make acpi_MatchHid take a handle instead of a device_t arg. * Replace acpi_{get,set}_resource with the generic equivalents.
Diffstat (limited to 'sys/dev/acpica/acpi_ec.c')
-rw-r--r--sys/dev/acpica/acpi_ec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_ec.c b/sys/dev/acpica/acpi_ec.c
index 03f719a..d2605bc 100644
--- a/sys/dev/acpica/acpi_ec.c
+++ b/sys/dev/acpica/acpi_ec.c
@@ -454,7 +454,7 @@ acpi_ec_probe(device_t dev)
if (DEV_ECDT(dev)) {
params = acpi_get_private(dev);
ret = 0;
- } else if (acpi_MatchHid(dev, "PNP0C09")) {
+ } else if (acpi_MatchHid(acpi_get_handle(dev), "PNP0C09")) {
params = malloc(sizeof(struct acpi_ec_params), M_TEMP,
M_WAITOK | M_ZERO);
h = acpi_get_handle(dev);
OpenPOWER on IntegriCloud