eal/linux: enable uio_pci_generic support
authorDanny Zhou <danny.zhou@intel.com>
Fri, 20 Feb 2015 16:59:15 +0000 (16:59 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 20 Feb 2015 22:34:31 +0000 (23:34 +0100)
commit4a499c64959074ba6fa6a5a2b3a2a6aa10627fa1
tree677ec652020b020f0911d03ed2e1f484147bc54f
parent6e6b34fb26ddc8cf3762bcd0bbb99d9864741f7b
eal/linux: enable uio_pci_generic support

Change the EAL PCI code so that it can work with both the
uio_pci_generic in-tree driver, as well as the igb_uio
DPDK-specific driver.

This involves changes to
1) Modify method of retrieving BAR resource mapping information
2) Mapping using resource files in /sys rather than /dev/uio*
2) Setup bus master bit in NIC's PCIe configuration space for
uio_pci_generic.

Signed-off-by: Danny Zhou <danny.zhou@intel.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
lib/librte_eal/common/include/rte_pci.h
lib/librte_eal/linuxapp/eal/eal_pci.c
lib/librte_eal/linuxapp/eal/eal_pci_uio.c
lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h