HomeFreeBSD

LinuxKPI: Add pci_dev_id to linux/pci.h

Description

LinuxKPI: Add pci_dev_id to linux/pci.h

It returns bus/device/function number for given PCI device.
Also add intermediate PCI_DEVID macro used in some drivers.

Sponsored by: Serenity Cyber Security, LLC
Reviewed by: emaste
MFC after: 1 week

Details

Provenance
wulfAuthored on Apr 8 2024, 6:47 AM
Parents
rGe8f59f4d31b2: LinuxKPI: Add the accelerator PCIe class
Branches
Unknown
Tags
Unknown