HomeFreeBSD

stand/kshim: Update for devclass being removed from DRIVER_MODULE

Description

stand/kshim: Update for devclass being removed from DRIVER_MODULE

The kshim code abused the devclass argument to DRIVER_MODULE in some
odd ways. Instead, refactor the devclass handling to more closely
mirror what new-bus does in the kernel by having a linked list of
devclasses looked up by name and associate devices with a devclass.

Devices are now only associated with a module while probing and
attaching.

Reviewed by: imp, markj
Differential Revision: https://reviews.freebsd.org/D48409

(cherry picked from commit ee15875c01593b287e55147c482b914e3ab01152)

Details

Provenance
jhbAuthored on Jan 11 2025, 4:01 AM
Reviewer
imp
Differential Revision
D48409: stand/usb: Update for devclass being removed from DRIVER_MODULE
Parents
rG4aed8b3b613c: new-bus: Add bus_(identify|attach|detach)_children
Branches
Unknown
Tags
Unknown