bus/pci: use memseg walk instead of iteration
authorAnatoly Burakov <anatoly.burakov@intel.com>
Wed, 11 Apr 2018 12:30:02 +0000 (13:30 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 11 Apr 2018 17:48:10 +0000 (19:48 +0200)
commit7411d03249161c5205cc81508ab8a5692d9a4a91
treedf7ee526eb2aa4c3c3223b7be17ec454455cb3b5
parent49a28baed2121d8ba5b92538b8da0d2fc2ebf74f
bus/pci: use memseg walk instead of iteration

Reduce dependency on internal details of EAL memory subsystem, and
simplify code.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Tested-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Tested-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Tested-by: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
drivers/bus/pci/Makefile
drivers/bus/pci/linux/pci.c
drivers/bus/pci/meson.build