Page MenuHomeFreeBSD

Add PNP metadata to more drivers
ClosedPublic

Authored by cem on Sep 25 2017, 4:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 20, 11:34 PM
Unknown Object (File)
Aug 16 2025, 9:19 AM
Unknown Object (File)
Aug 16 2025, 7:28 AM
Unknown Object (File)
Aug 11 2025, 11:51 AM
Unknown Object (File)
Aug 11 2025, 11:31 AM
Unknown Object (File)
Aug 4 2025, 3:28 AM
Unknown Object (File)
Jul 4 2025, 9:29 PM
Unknown Object (File)
Jul 4 2025, 12:50 AM
Subscribers

Details

Summary

GPUs: radeonkms, i915kms
NICs: if_em, if_igb, if_bnxt

This metadata isn't used yet, but it will be handy to have later to
implement automatic module loading.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/dev/drm2/i915/i915_drv.c
425 ↗(On Diff #33393)

Note that MODULE_DEVICE_TABLE is almost perfect as a Linux macro we can use via the linuxkpi for this metadata. The only problem is that different linuxkpi consumers use different pciid structs.

DRM drivers embed the vendor, device, and a human readable string.

Mellanox NIC drivers use the Linux struct pci_device_id, which has more members but lacks the human-readable string.

If Linuxkpi consumers could unify on a pci device id struct, we could use the existing MODULE_DEVICE_TABLE() macros for these drivers instead.

This revision is now accepted and ready to land.Sep 25 2017, 4:42 AM
This revision was automatically updated to reflect the committed changes.