diff options
author | Nate Lawson <njl@FreeBSD.org> | 2004-06-13 22:52:30 +0000 |
---|---|---|
committer | Nate Lawson <njl@FreeBSD.org> | 2004-06-13 22:52:30 +0000 |
commit | 9123341378d5a7506257bbe6a317037a7a43a9e9 (patch) | |
tree | d2dac6905b64b7bcc7fe4fdc69df38b6c7dc9629 /sys/dev/acpica/acpi_lid.c | |
parent | a10ab60930630c0f2bf234eea3e1721dc08c3045 (diff) | |
download | src-9123341378d5a7506257bbe6a317037a7a43a9e9.tar.gz src-9123341378d5a7506257bbe6a317037a7a43a9e9.zip |
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.
Notes
Notes:
svn path=/head/; revision=130439
Diffstat (limited to 'sys/dev/acpica/acpi_lid.c')
-rw-r--r-- | sys/dev/acpica/acpi_lid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_lid.c b/sys/dev/acpica/acpi_lid.c index 82beb464b134..e169237c7a5c 100644 --- a/sys/dev/acpica/acpi_lid.c +++ b/sys/dev/acpica/acpi_lid.c @@ -82,7 +82,7 @@ static int acpi_lid_probe(device_t dev) { if (acpi_get_type(dev) == ACPI_TYPE_DEVICE && !acpi_disabled("lid") && - acpi_MatchHid(dev, "PNP0C0D")) { + acpi_MatchHid(acpi_get_handle(dev), "PNP0C0D")) { device_set_desc(dev, "Control Method Lid Switch"); return (0); |