eal: introduce PCI ioport API
authorDavid Marchand <david.marchand@6wind.com>
Tue, 16 Feb 2016 20:37:03 +0000 (21:37 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 16 Feb 2016 21:55:44 +0000 (22:55 +0100)
commit756ce64b1ecdf107acfa45fc3f31359ca338649e
tree0d379d8e4f781e08405793e6a96ae905b1ff0b9a
parent7a66c72d6cd6617888d1e20082d923a80abff836
eal: introduce PCI ioport API

Most of the code is inspired on virtio driver.
rte_pci_ioport structure is filled at map time with anything needed for later
read / write calls.
At the moment, base field is used to store a x86 ioport (uint16_t) and will
be reused for other arches.

Signed-off-by: David Marchand <david.marchand@6wind.com>
Tested-by: Santosh Shukla <sshukla@mvista.com>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
lib/librte_eal/bsdapp/eal/eal_pci.c
lib/librte_eal/bsdapp/eal/rte_eal_version.map
lib/librte_eal/common/include/rte_pci.h
lib/librte_eal/linuxapp/eal/eal_pci.c
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
lib/librte_eal/linuxapp/eal/rte_eal_version.map