Rather than rely on Linux headers to find some PCI(e) standard constants
or reinvent the same PCI capability helper, this series complements the
pci library and the pci bus driver.
PCI drivers can then use OS agnostic macros and helpers.
WARNING: this is only compile tested.
--
David Marchand
David Marchand (14):
drivers: remove duplicated PCI master control
bus/pci: add const to some experimental API
bus/pci: find PCI capability
pci: define some capability constants
pci: define some MSIX constants
pci: define some command constants
pci: define some BAR constants
pci: define some PM constants
pci: define some PCIe constants
pci: define some extended capability constants
pci: define some ACS constants
pci: define some PRI constants
pci: define some AER constants
devtools: forbid inclusion of Linux header for PCI
devtools/checkpatches.sh | 8 ++
drivers/bus/pci/linux/pci_init.h | 18 ----
drivers/bus/pci/linux/pci_uio.c | 32 +-----
drivers/bus/pci/linux/pci_vfio.c | 142 ++++++-------------------
drivers/bus/pci/pci_common.c | 49 ++++++++-
drivers/bus/pci/rte_bus_pci.h | 35 ++++++-
drivers/bus/pci/version.map | 2 +
drivers/crypto/virtio/virtio_pci.c | 67 ++++--------
drivers/event/dlb2/pf/dlb2_main.c | 156 ++++++++--------------------
drivers/net/bnx2x/bnx2x.c | 86 ++++++++-------
drivers/net/bnx2x/bnx2x.h | 46 --------
drivers/net/cxgbe/base/adapter.h | 31 +-----
drivers/net/gve/gve_ethdev.c | 46 +-------
drivers/net/gve/gve_ethdev.h | 14 +--
drivers/net/hns3/hns3_ethdev_vf.c | 109 +++----------------
drivers/net/ngbe/base/ngbe_hw.c | 20 +---
drivers/net/ngbe/base/ngbe_osdep.h | 3 -
drivers/net/virtio/virtio_pci.c | 131 ++++-------------------
drivers/vdpa/ifc/base/ifcvf_osdep.h | 4 +-
lib/pci/rte_pci.h | 77 +++++++++++++-
20 files changed, 346 insertions(+), 730 deletions(-)
--
2.41.0