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

(cherry picked from commit f1206503e5a0073f56710bfebb6e503dcf612536)

Details

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