u-boot/arch/powerpc/include/asm
Zhao Qiang 287df01e6a PCIe:change the method to get the address of a requested capability in configuration space.
Previously, the address of a requested capability is define like that
	"#define PCI_DCR	0x78"
But, the addresses of capabilities is different with regard to PCIe revs.
So this method is not flexible.

Now a function to get the address of a requested capability is added and used.
It can get the address dynamically by capability ID.
The step of this function:
	1. Read Status register in PCIe configuration space to confirm that
	   Capabilities List is valid.
	2. Find the address of Capabilities Pointer Register.
	3. Find the address of requested capability from the first capability.

Signed-off-by: Zhao Qiang <B45475@freescale.com>
2013-10-16 16:15:17 -07:00
..
arch-mpc83xx Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
4xx_pci.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
4xx_pcie.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
5xx_immap.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
8xx_immap.h powerpc: fix 8xx and 82xx type-punning warnings with GCC 4.7 2013-06-11 22:01:45 +02:00
apm821xx.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
atomic.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
bitops.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
byteorder.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
cache.h ppc4xx: Remove IOP480 support 2012-10-15 11:53:59 -07:00
config.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
config_mpc85xx.h powerpc/mpc85xx: Add workaround for erratum A006379 2013-10-16 16:15:17 -07:00
config_mpc86xx.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cpm_85xx.h cleanup: Fix typos and misspellings in various files. 2011-07-28 21:27:36 +02:00
cpm_8260.h cleanup: Fix typos and misspellings in various files. 2011-07-28 21:27:36 +02:00
e300.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
errno.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
fsl_ddr_dimm_params.h powerpc: Fix CamelCase warnings in DDR related code 2013-10-16 16:15:16 -07:00
fsl_ddr_sdram.h powerpc: Fix CamelCase warnings in DDR related code 2013-10-16 16:15:16 -07:00
fsl_dma.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
fsl_dtsec.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_enet.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_errata.h powerpc/mpc85xx: Add workaround for erratum A006379 2013-10-16 16:15:17 -07:00
fsl_fman.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_i2c.h fsl_i2c: add workaround for the erratum I2C A004447 2013-08-20 11:15:31 +02:00
fsl_ifc.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_law.h powerpc/85xx: Add C29x SoC support 2013-08-09 12:41:42 -07:00
fsl_lbc.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_liodn.h powerpc/srio: Update the SRIO LIODN registers and ID table macro 2013-08-09 12:41:37 -07:00
fsl_memac.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_mpc83xx_serdes.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_pci.h PCIe:change the method to get the address of a requested capability in configuration space. 2013-10-16 16:15:17 -07:00
fsl_portals.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_secure_boot.h powerpc: add CONFIG_SECURE_BOOT condition into fsl_secure_boot.h 2013-10-16 16:13:10 -07:00
fsl_serdes.h powerpc/asm: Move function declaration of 'serdes_get_prtcl' to fsl_serdes.h 2013-08-09 12:41:41 -07:00
fsl_srio.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_tgec.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
global_data.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
gpio.h mpc83xx: Add a GPIO driver for the MPC83XX family 2012-01-09 20:10:33 -06:00
immap_83xx.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
immap_85xx.h powerpc/mpc85xx: Add workaround for erratum A006379 2013-10-16 16:15:17 -07:00
immap_86xx.h 8xxx: Change all 8*xx_DDR addresses to 8xxx 2012-11-27 17:45:17 -06:00
immap_512x.h powerpc: Fix CamelCase warnings in DDR related code 2013-10-16 16:15:16 -07:00
immap_8260.h powerpc: fix 8xx and 82xx type-punning warnings with GCC 4.7 2013-06-11 22:01:45 +02:00
immap_qe.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
interrupt.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
io.h arch/powerpc/include/asm/io.h: fix warning: preprocessor token __iomem redefined 2012-11-04 11:00:35 -07:00
iopin_8xx.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
iopin_85xx.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
iopin_8260.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
m8260_pci.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
mc146818rtc.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
mmu.h powerpc/mpc85xx: add support for MMUv2 page sizes 2013-01-30 11:25:15 -06:00
mp.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mpc8xxx_spi.h mpc8308: support for Freescale MPC8308 cpu 2010-07-09 15:00:54 -05:00
mpc85xx_gpio.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mpc512x.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mpc8349_pci.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
pci_io.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
pnp.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
posix_types.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
ppc4xx-ebc.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ppc4xx-emac.h SPDX: fix IBM-pibs license identifier 2013-09-20 10:30:54 -04:00
ppc4xx-gpio.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc4xx-i2c.h Merge branch 'master' of git://git.denx.de/u-boot-i2c 2013-07-24 09:50:24 -04:00
ppc4xx-isram.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc4xx-mal.h SPDX: fix IBM-pibs license identifier 2013-09-20 10:30:54 -04:00
ppc4xx-sdram.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ppc4xx-uic.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ppc4xx.h SPDX: fix IBM-pibs license identifier 2013-09-20 10:30:54 -04:00
ppc4xx_config.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc405.h SPDX: fix IBM-pibs license identifier 2013-09-20 10:30:54 -04:00
ppc405ep.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ppc405ex.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ppc405ez.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ppc405gp.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ppc440.h SPDX: fix IBM-pibs license identifier 2013-09-20 10:30:54 -04:00
ppc440ep_gr.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ppc440epx_grx.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ppc440gp.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ppc440gx.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ppc440sp.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ppc440spe.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ppc460ex_gt.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ppc460sx.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
processor.h ppc4xx: Remove support for PPC405CR CPUs 2013-08-20 11:35:24 -04:00
ptrace.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
residual.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
sections.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
sigcontext.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
signal.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
spl.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
status_led.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
string.h Add strcasecmp() and strncasecmp() 2012-12-11 13:17:34 -07:00
types.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
u-boot.h ppc4xx: Remove support for PPC405CR CPUs 2013-08-20 11:35:24 -04:00
unaligned.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
xilinx_irq.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00