Page MenuHomeFreeBSD

uvideo: bind ACPI handle.
Needs ReviewPublic

Authored by takawata on Jun 23 2026, 9:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 13, 7:54 PM
Unknown Object (File)
Thu, Aug 13, 6:58 PM
Unknown Object (File)
Thu, Aug 13, 5:35 AM
Unknown Object (File)
Thu, Aug 13, 2:58 AM
Unknown Object (File)
Thu, Aug 13, 1:50 AM
Unknown Object (File)
Wed, Aug 12, 11:10 PM
Unknown Object (File)
Wed, Aug 12, 10:36 PM
Unknown Object (File)
Wed, Aug 12, 3:51 PM
Subscribers

Details

Reviewers
bapt
Summary

According to https://learn.microsoft.com/en-us/windows-hardware/drivers/bringup/other-acpi-namespace-objects
some USB Imaging device has corresponding ACPI device object with _PLD(physical location of device) information for
each camera interface to inform camera position.

This will expose two information to userland with sysctl:

  • rawpld raw content of _PLD object.
  • acpi_handle ACPI namespace path of Device object corresponding to camera interface.

Note that set KERNBUILDDIR to build dir of kernel with ACPI enabled to make this patch take effect.

Test Plan

build and load this driver with ACPI on USB hub enabled by loading uacpi.ko or something.

Then issue
% sysctl dev.uvideo.N.acpi_handle
or
% sysctl -b dev.uvideo.N.rawpld |hexdump -x

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 74141
Build 71024: arc lint + arc unit