Page MenuHomeFreeBSD

Add plug and play information macroses for ACPI and I2C buses.
ClosedPublic

Authored by wulf on Oct 17 2020, 12:26 AM.
Tags
None
Referenced Files
F110686971: D26824.diff
Fri, Feb 21, 9:57 PM
Unknown Object (File)
Thu, Feb 20, 3:54 PM
Unknown Object (File)
Thu, Feb 20, 3:50 PM
Unknown Object (File)
Tue, Feb 18, 8:50 PM
Unknown Object (File)
Tue, Feb 18, 7:52 AM
Unknown Object (File)
Jan 18 2025, 5:13 PM
Unknown Object (File)
Jan 1 2025, 8:18 PM
Unknown Object (File)
Dec 7 2024, 6:40 AM
Subscribers

Details

Summary

Matching table format is compatible with ACPI_ID_PROBE bus method used in most ACPI drivers.

Test Plan

ACPI part is tested with acpi_wmi(4) and acpi_dock(4) drivers. Required changes to these drivers are included.
IICBUS part is tested with development version of sysutils/iichid.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

wulf requested review of this revision.Oct 17 2020, 12:26 AM
wulf created this revision.

One nit on the comments, otherwise it's fine. Fix that and I'm good with what you commit (so I'm accepting it now). I'm a little worried about the DEV_ACPI ifdef, but it's likely fine... I suspect we'll have at least one module not built properly, or built independently of the tree that has issues, but we can look into those when that happens.

sys/dev/acpica/acpivar.h
236

You may wish to note that ACPI_ID_PROBE looks at both _HID and _CID, so both need to be listed. It took me a second to realize what you were doing here, and so I suspect others may need the hint as well.

This revision is now accepted and ready to land.Oct 17 2020, 7:27 PM