HomeFreeBSD

LinuxKPI: pci.h MODULE_DEVICE_TABLE to MODULE_PNP_INFO

Description

LinuxKPI: pci.h MODULE_DEVICE_TABLE to MODULE_PNP_INFO

Implement MODULE_PNP_INFO() support in LinuxKPI for the Linux
MODULE_DEVICE_TABLE.

This will allow us to auto-load LinuxKPI PCI drivers (drm-kmod do
not currently as they attach to vgapci0 which in turn grabs the PCI
to my understanding) and make any loading from loader or kld_list in
rc.conf unnecessary; see devmatch(8) for more information.

We need to ensure there is a DRIVER_MODULE() (or probably just
a DECLARE_MODULE but that makes not much difference) before the
MODULE_PNP_INFO (which we otherwise would not need).

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: imp, hselasky, manu
Differential Revision: https://reviews.freebsd.org/D26651

Details

Provenance
bzAuthored on Mar 4 2022, 12:06 AM
Reviewer
imp
Differential Revision
D26651: linuxkpi: MODULE_DEVICE_TABLE to MODULE_PNP_INFO
Parents
rGfbedd9d708d0: LinuxKPI: remove duplicate include
Branches
Unknown
Tags
Unknown