eal/linux: mmap uio resources using resourceX files
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 24 Feb 2015 13:30:45 +0000 (13:30 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Feb 2015 21:29:43 +0000 (22:29 +0100)
commit9e67561acd1a10ec41fffe5ca512a6376de96369
tree0f8751d16d8c6b27fa6c6821415130c714bbba8a
parent79fb49bfbf79203aa06e9ddfd09b84acb290dca0
eal/linux: mmap uio resources using resourceX files

Instead of distinguishing the BAR mappings via offset within a single
file, originally /dev/uioX, switch to mapping each individual bar via
the appropriately numbered resourceX file.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: David Marchand <david.marchand@6wind.com>
lib/librte_eal/common/include/rte_pci.h
lib/librte_eal/linuxapp/eal/eal_pci_init.h
lib/librte_eal/linuxapp/eal/eal_pci_uio.c
lib/librte_eal/linuxapp/eal/eal_pci_vfio.c