pci: introduce functions to alloc and free uio resource
authorTetsuya Mukawa <mukawa@igel.co.jp>
Wed, 8 Jul 2015 10:34:47 +0000 (19:34 +0900)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 8 Jul 2015 21:50:22 +0000 (23:50 +0200)
commit5a60a7ffc8016cd3889405c2b615277505d0e28f
treee6616035a833a9af4aef29f2e67bebab517b4629
parentf83b0b91891ed63abe83d64b7ad2118817da3a5d
pci: introduce functions to alloc and free uio resource

This patch adds new functions called pci_uio_alloc_resource() and
pci_uio_free_resource().
The functions hides how to prepare or free uio resource in linuxapp
and bsdapp. With the function, pci_uio_map_resource() will be more
abstracted.

Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>
Acked-by: David Marchand <david.marchand@6wind.com>
lib/librte_eal/bsdapp/eal/eal_pci.c
lib/librte_eal/linuxapp/eal/eal_pci_uio.c