drivers/pci: Add function to find an extended capability
authorMinghuan Lian <Minghuan.Lian@freescale.com>
Fri, 10 Jul 2015 03:35:08 +0000 (11:35 +0800)
committerYork Sun <yorksun@freescale.com>
Mon, 3 Aug 2015 19:06:38 +0000 (12:06 -0700)
commited5b580b381307c522cb977dccd207a170ad9b13
tree929d9af741da43caa515aea03db7590e03946229
parent87457d118f77b6d4de4de83118360fb0eade491c
drivers/pci: Add function to find an extended capability

PCIe extends device's configuration space to 4k and provides
extended capability. The patch adds function to find them.
The code is ported from Linux PCIe driver.

Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: York Sun <yorksun@freescale.com>
drivers/pci/pci.c
include/pci.h