numam-dpdk/drivers/bus/pci/meson.build
David Marchand 1f37cb2bb4 bus/pci: make driver-only headers private
The pci bus interface is for drivers only.
Mark as internal and move the header in the driver headers list.

While at it, cleanup the code:
- fix indentation,
- remove unneeded reference to bus specific singleton object,
- remove unneeded list head structure type,
- reorder the definitions and macro manipulating the bus singleton object,
- remove inclusion of rte_bus.h and fix the code that relied on implicit
  inclusion,

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Acked-by: Rosen Xu <rosen.xu@intel.com>
2022-09-23 16:14:34 +02:00

34 lines
768 B
Meson

# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
deps += ['pci']
headers = files('rte_bus_pci.h')
driver_sdk_headers = files('bus_pci_driver.h')
sources = files('pci_common.c',
'pci_params.c')
if is_linux
sources += files(
'pci_common_uio.c',
'linux/pci.c',
'linux/pci_uio.c',
'linux/pci_vfio.c',
)
includes += include_directories('linux')
endif
if is_freebsd
sources += files(
'pci_common_uio.c',
'bsd/pci.c',
)
includes += include_directories('bsd')
endif
if is_windows
sources += files(
'windows/pci.c',
'windows/pci_netuio.c',
)
includes += include_directories('windows')
endif
deps += ['kvargs']