]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
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)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:00:48 +0000 (08:00 +0200)
commit73a444935db0a07f360041412e3b78472ecb5115
tree5a41750934c8c42385ccf3cc4ba0b7e74c1c1aac
parent9417dabb7afdd75c30b3c9827c52b3e123bfa5d4
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