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
Unknown Object (File)
Mon, Apr 29, 3:26 PM
Unknown Object (File)
Mon, Apr 29, 3:20 PM
Unknown Object (File)
Mon, Apr 29, 3:19 PM
Unknown Object (File)
Sun, Apr 28, 4:50 PM
Unknown Object (File)
Feb 10 2024, 2:09 AM
Unknown Object (File)
Jan 11 2024, 10:44 PM
Unknown Object (File)
Dec 20 2023, 6:35 AM
Unknown Object (File)
Nov 8 2023, 6:47 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 Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #78339)

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