HomeFreeBSD

Remove PCI_SET_POWERSTATE method from acpi.c and eradicate all PCI-specific

Description

Remove PCI_SET_POWERSTATE method from acpi.c and eradicate all PCI-specific
knowledges from the file. All PCI devices enumerated in ACPI tree must use
correct one from acpi_pci.c any way. Reduce duplicate codes as we did for
pci.c in r213905. Do not return ESRCH from PCIB_POWER_FOR_SLEEP method.
When the method is not found, just return zero without modifying the given
default value as it is completely optional. As a side effect, the return
state must not be NULL. Note there is actually no functional change by
removing ESRCH because acpi_pcib_power_for_sleep() always returns zero.
Adjust debugging messages and add new ones under bootverbose to help
debugging device power state related issues.

Reviewed by: jhb, imp (earlier versions)

Details

Provenance
jkimAuthored on Oct 19 2010, 7:53 PM
Parents
rG10c2bb0a10a7: - Wrap exchanging td_intr_frame and calling the event timer callback in
Branches
Unknown
Tags
Unknown

Event Timeline