bus/pci: support Windows with bifurcated drivers
authorTal Shnaiderman <talshn@mellanox.com>
Mon, 29 Jun 2020 12:37:40 +0000 (15:37 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 29 Jun 2020 22:02:54 +0000 (00:02 +0200)
commitb762221ac24fe5f6c4d62847cc8431806c7587da
tree1d22175dabcb872a49438cd3747a9a7614df1790
parent33031608e8f0c64d519ed74960cb743bfcf27e40
bus/pci: support Windows with bifurcated drivers

Uses SetupAPI.h functions to scan PCI tree.
Uses DEVPKEY_Device_Numa_Node to get the PCI NUMA node.
Uses SPDRP_BUSNUMBER and SPDRP_BUSNUMBER to get the BDF.
scanning currently supports types RTE_KDRV_NONE.

Signed-off-by: Tal Shnaiderman <talshn@mellanox.com>
drivers/bus/pci/windows/pci.c
lib/librte_eal/rte_eal_exports.def
lib/librte_eal/windows/include/rte_windows.h