u-boot/include
Pali Rohár a4bc38da27 pci: Add standard PCIe ECAM macros
Lot of PCIe controllers are using ECAM addressing. So add common ECAM
macros into U-Boot's pci.h header file which can be suitable for most
PCI controller drivers.

Replace custom ECAM address macros in every PCI controller driver by new
ECAM macros from U-Boot's pci.h header file.

Similar macros are defined also in Linux kernel. There is a small
difference between Linux and these new U-Boot macros.

U-Boot's PCIE_ECAM_OFFSET() takes device and function numbers in separate
arguments. Linux's PCIE_ECAM_OFFSET() takes device and function numbers
encoded in one argument. The reason is that U-Boot's PCI_DEVFN() macro is
different than Linux's PCI_SLOT() macro. So having device and function
numbers in separate arguments makes code more straightforward.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
2021-11-17 17:04:58 -05:00
..
acpi
andestech
asm-generic gpio: Factor out DT flag translation 2021-10-05 08:50:15 -04:00
bedbug
broadcom
cavium
clk clk: sunxi: Move header out of arch directory 2021-10-11 10:46:44 +01:00
configs sandbox: Use a text-based environment 2021-11-16 14:35:08 -05:00
cramfs
crypto dm: crypto: Define UCLASS API for ECDSA signature verification 2021-08-16 10:49:35 +02:00
dm dm: core: add ofnode_for_each_compatible_node() 2021-11-09 17:18:23 +05:30
dt-bindings arm: dts: ls1028a: sync the fsl-ls1028a.dtsi with linux 2021-11-09 17:18:23 +05:30
environment WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
faraday WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
fsl-mc drivers: net: fsl-mc: add a command which dumps the MC log 2021-11-09 17:18:06 +05:30
jffs2
kendryte clk: k210: Remove bypass driver 2021-06-17 09:40:57 +08:00
keys
linux Merge https://source.denx.de/u-boot/custodians/u-boot-spi 2021-10-23 10:49:28 -04:00
lzma
mtd Xilinx changes for v2022.01-rc1 2021-09-30 11:29:41 -04:00
mvebu phy: marvell: add RX training command 2021-04-29 07:45:24 +02:00
net net: update NXP copyright text 2021-09-28 18:50:56 +03:00
power i2c: Convert CONFIG_POWER_I2C et al to Kconfig 2021-09-04 12:26:02 -04:00
reboot-mode reboot-mode: read the boot mode from RTC memory 2021-07-23 10:16:39 -04:00
samsung
spmi
synopsys
tee lib: optee: Avoid CONFIG_TZDRAM_* in optee_verify_bootm_image() 2021-10-05 08:46:23 -04:00
test test: Add a way to skip console checking until a string matches 2021-09-16 14:39:40 -04:00
u-boot lz4: Use a private header for U-Boot 2021-10-09 13:09:56 -04:00
usb usb: ehci-mx6: use phy_type from device tree 2021-09-28 18:50:55 +03:00
xen
zfs
.gitignore
_exports.h
abuf.h Add support for an owned buffer 2021-10-08 15:53:26 -04:00
ACEX1K.h
adc.h
addr_map.h
ahci.h pci: acpi: Drop DM_PCI check from ahci 2021-09-13 18:23:13 -04:00
ali512x.h
altera.h
android_ab.h
android_bootloader_message.h
android_image.h
ansi.h
api.h
api_public.h
armcoremodule.h
asm-offsets.h
ata.h Fix IDE commands issued, fix endian issues, fix non MMIO 2021-04-20 07:31:12 -04:00
atf_common.h
atmel_hlcdc.h
atmel_lcd.h
atmel_lcdc.h
atmel_mci.h
atsha204a-i2c.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
audio_codec.h
autoboot.h sandbox: Reduce keyed autoboot delay 2021-08-01 09:05:24 -06:00
avb_verify.h
axi.h
axp152.h include: axp_pmic: Include headers for all variants 2021-10-25 14:50:42 +01:00
axp209.h include: axp_pmic: Include headers for all variants 2021-10-25 14:50:42 +01:00
axp221.h include: axp_pmic: Include headers for all variants 2021-10-25 14:50:42 +01:00
axp305.h
axp809.h include: axp_pmic: Include headers for all variants 2021-10-25 14:50:42 +01:00
axp818.h include: axp_pmic: Include headers for all variants 2021-10-25 14:50:42 +01:00
axp_pmic.h include: axp_pmic: Include headers for all variants 2021-10-25 14:50:42 +01:00
backlight.h
bcb.h
bcd.h
binman.h
binman_sym.h
bios_emul.h pci: Drop DM_PCI check from bios_emul 2021-08-05 19:46:35 -04:00
bitfield.h
blk.h efi_loader: add UEFI GPT measurement 2021-10-26 21:32:46 +02:00
bloblist.h bloblist: Tidy up a few API comments 2021-07-21 10:27:34 -06:00
bmp_layout.h
boot_fit.h
bootcount.h
bootm.h Remove LYNX KDI remainders 2021-11-11 19:02:44 -05:00
bootretry.h
bootstage.h bootstage: Add SPL support 2021-10-31 12:26:44 -06:00
bouncebuf.h
btrfs.h
bus_vcxk.h
button.h
bzlib.h
cache.h
capitalization.h
cbfs.h
charset.h efi_loader: documentation codepage_437[] 2021-04-10 12:00:24 +02:00
circbuf.h
cli.h
cli_hush.h
clk-uclass.h
clk.h clk: Rename clk_get_by_driver_info() 2021-09-25 09:46:15 -06:00
clock_legacy.h nxp: Migrate CONFIG_DDR_CLK_FREQ to Kconfig 2021-08-31 17:46:37 -04:00
cmd_spl.h
command.h
common.h
common_timing_params.h
compiler.h compiler: Rename host_build() to tools_build() 2021-10-08 15:53:26 -04:00
config_distro_bootcmd.h distro_bootcmd: run pci enum for scsi_boot just like it is done for nvme_boot 2021-10-07 10:14:50 +02:00
config_fallbacks.h Convert CONFIG_SYS_I2C_LEGACY to Kconfig and add CONFIG_[ST]PL_SYS_I2C_LEGACY 2021-08-30 14:10:07 -04:00
config_fsl_chain_trust.h
config_phylib_all_drivers.h
config_uncmd_spl.h
console.h test: add first autoboot unit tests 2021-07-23 13:36:20 -04:00
cortina.h
cp437.h
cp1250.h
cpsw.h
cpu.h
cpu_func.h arm64: Update memcpy_{from, to}io() helpers 2021-07-28 19:30:22 -04:00
cros_ec.h cros_ec: Drop cros_ec_entering_mode() 2021-07-21 10:27:34 -06:00
cros_ec_message.h
crypt.h lib: wrap crypt API to hide errno usage 2021-07-23 13:36:20 -04:00
ctype.h
ddr_spd.h
debug_uart.h
dfu.h dfu: add error callback 2021-06-18 10:09:41 +02:00
dialog_pmic.h
display.h
display_options.h display_options: Split print_buffer() into two functions 2021-06-08 11:39:09 -04:00
div64.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
dm-demo.h
dm.h
dm9000.h
dma-uclass.h
dma.h
dp83848.h
ds1722.h
dsi_host.h
dt-structs.h dm: Add comments to dt-structs contents 2021-09-25 09:46:15 -06:00
dt_table.h
dw_hdmi.h
dwc3-omap-uboot.h
dwc3-sti-glue.h
dwc3-uboot.h
dwc_ahsata.h
dwmmc.h
e500.h
ec_commands.h
edid.h
eeprom.h Convert CONFIG_SYS_I2C_EEPROM_ADDR et al to Kconfig 2021-08-30 14:10:06 -04:00
eeprom_field.h
eeprom_layout.h
efi.h efi: Add a way to obtain boot services in the app 2021-11-07 18:36:55 +01:00
efi_api.h efi_loader: add missing const qualifier 2021-10-25 21:13:06 +02:00
efi_driver.h
efi_dt_fixup.h
efi_load_initrd.h efi_loader: avoid multiple local copies of lf2_initrd_guid 2021-10-21 03:46:04 +02:00
efi_loader.h efi_loader: add UEFI GPT measurement 2021-10-26 21:32:46 +02:00
efi_rng.h
efi_selftest.h efi_loader: improve documentation of enum efi_test_phase 2021-04-10 12:00:24 +02:00
efi_tcg2.h efi_loader: add UEFI GPT measurement 2021-10-26 21:32:46 +02:00
efi_variable.h efi_loader: function to get GUID for variable name 2021-10-25 21:13:06 +02:00
elf.h
env.h bootm: Tidy up use of autostart env var 2021-11-16 14:35:09 -05:00
env_attr.h
env_callback.h
env_default.h env: Allow U-Boot scripts to be placed in a .env file 2021-11-16 14:35:08 -05:00
env_flags.h
env_internal.h Convert CONFIG_ENV_IS_IN_SPI_FLASH et al to Kconfig 2021-11-12 14:18:17 -05:00
errno.h sandbox: errno: avoid conflict with libc's errno 2021-05-24 14:21:30 -04:00
eth_phy.h
ethsw.h
exception.h
exports.h
ext4fs.h
ext_common.h
extension_board.h cmd: add support for a new "extension" command 2021-05-13 13:09:05 -04:00
exynos_lcd.h
fastboot-internal.h
fastboot.h
fat.h
fb_mmc.h
fb_nand.h
fdt.h
fdt_region.h
fdt_simplefb.h
fdt_support.h hash: Use Kconfig to enable hashing in host tools and SPL 2021-10-08 15:53:26 -04:00
fdtdec.h sandbox: Remove OF_HOSTFILE 2021-10-27 16:38:26 -04:00
fis.h
flash.h flash.h: Remove CONFIG_SYS_FLASH_CFI from flash_info_t 2021-08-11 10:36:10 +02:00
fm_eth.h
fpga.h
fs.h fs: fat: add file attributes to struct fs_dirent 2021-07-12 20:30:48 +02:00
fs_internal.h
fs_loader.h
fsl_csu.h
fsl_dcu_fb.h
fsl_ddr.h
fsl_ddr_dimm_params.h
fsl_ddr_sdram.h
fsl_ddrc_version.h
fsl_devdis.h
fsl_diu_fb.h
fsl_dspi.h m68k: Remove M5475x boards 2021-07-07 19:52:22 -04:00
fsl_dtsec.h
fsl_errata.h
fsl_esdhc.h
fsl_esdhc_imx.h mmc: sdhci-esdhc-imx: Add HS400 support for iMX7ULP 2021-10-07 21:58:49 +02:00
fsl_fman.h
fsl_ifc.h
fsl_immap.h
fsl_lpuart.h driver: serial: fsl_lpuart: support i.MX8ULP 2021-08-09 14:46:51 +02:00
fsl_mdio.h
fsl_memac.h
fsl_mmdc.h
fsl_pmic.h
fsl_qbman.h
fsl_qe.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
fsl_sec.h
fsl_sec_mon.h
fsl_secboot_err.h
fsl_sfp.h
fsl_tgec.h
fsl_usb.h
fsl_validate.h
fsl_wdog.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
fuse.h
g_dnl.h usb: gadget: g_dnl: add function g_dnl_set_product 2020-05-14 09:02:12 +02:00
gdsys_fpga.h ppc: Remove gdsys hrcon boards 2021-04-10 08:04:42 -04:00
generic-phy.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
getopt.h
gt64120.h
gzip.h gzip: Avoid use of u64 2021-10-08 15:53:26 -04:00
handoff.h
hang.h
hash.h hash: Use Kconfig to enable hashing in host tools and SPL 2021-10-08 15:53:26 -04:00
hda_codec.h
hexdump.h hexdump: Allow ctrl-c to interrupt output 2021-06-08 11:39:09 -04:00
host_arch.h
hw_sha.h hash: Allow for SHA512 hardware implementations 2021-04-12 17:17:11 -04:00
hwconfig.h
hwspinlock.h
i2c.h Convert CONFIG_SYS_I2C_SPEED et al to Kconfig 2021-08-30 14:10:07 -04:00
i2c_eeprom.h
i2s.h
i8042.h i8042: Do not abuse CONFIG namespace 2021-08-30 14:13:28 -04:00
ide.h
image-android-dt.h
image-sparse.h
image.h image.h: make image_sign_info.fit point to const 2021-10-31 12:26:44 -06:00
imx8image.h
imx_lpi2c.h
imx_sip.h
imx_thermal.h
imximage.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
init.h pci: Drop pci_init_board() 2021-08-06 08:26:48 -04:00
initcall.h
input.h
inttypes.h
iommu.h iommu: Add IOMMU uclass 2021-10-31 08:46:44 -04:00
iomux.h
ioports.h
iotrace.h trace: Remove the const from write functions 2019-10-11 17:37:19 +08:00
ipu_pixfmt.h
irq.h irq: Tidy up of-platdata irq support 2021-09-25 09:46:15 -06:00
irq_func.h
k3-avs.h
k3-clk.h clk: ti: k3: Update driver to account for divider flags 2021-09-17 14:47:03 -04:00
k3-dev.h cmd: ti: pd: Add debug command for K3 power domains 2021-06-11 16:34:52 +05:30
key_matrix.h
keyboard.h
kgdb.h
lattice.h
lcd.h
lcd_console.h
lcdvideo.h
ld9040.h
led.h
libata.h
libtizen.h
linker_lists.h treewide: Convert macro and uses of __section(foo) to __section("foo") 2021-05-24 14:21:30 -04:00
linux_logo.h
lmb.h lmb: Add generic arch_lmb_reserve_generic() 2021-09-23 14:15:32 -04:00
log.h log: Convert log values to printf() if not enabled 2021-06-08 11:39:09 -04:00
lxt971a.h
mailbox-uclass.h
mailbox.h
malloc.h malloc: add SPDX license identifiers 2021-06-23 08:45:03 -04:00
mapmem.h
mc9sdz60.h
mc13783.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
mc13892.h
mc34704.h
MCD_dma.h
MCD_progCheck.h
MCD_tasksInit.h
media_bus_format.h
memalign.h
membuff.h
menu.h
micrel.h
mii_phy.h
miiphy.h
mipi_display.h
mipi_dsi.h
misc.h
mk48t59.h
mm_communication.h
mmc.h mmc: Add support for enumerating MMC card in a given mode using mmc command 2021-09-10 18:17:04 +08:00
mpc8xx.h
mpc8xx_irq.h
mpc83xx.h mpc83xx: Update comment 2021-08-30 14:13:28 -04:00
mpc85xx.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
mpc86xx.h
mpc106.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
msc01.h
mtd.h mtd: spi: nor: force mtd name to "nor%d" 2021-09-28 12:03:20 -04:00
mtd_node.h
mux-internal.h
mux.h mux: correct prototype for mux_control_try_select() 2021-07-23 07:13:25 -04:00
mv88e6352.h
mvebu_mmc.h
mvmfp.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
mxs_nand.h nand.h: Cleanup linux/mtd/rawnand.h usage 2021-10-06 09:16:23 -04:00
nand.h mtd: Remove mtd_erase_callback() entirely 2021-10-23 15:47:33 +05:30
net.h net: add set_promisc function to enable/disable Promiscuous mode 2021-07-10 18:12:41 +02:00
netdev.h net: remove unused CONFIG_DRIVER_AT91EMAC_* 2021-09-21 10:08:24 +03:00
ns16550.h
nuvoton_nct6102d.h
nvme.h
of_live.h
omap3_spi.h
onenand_uboot.h
opensbi.h
os.h sandbox: Add a way to map a file into memory 2021-09-16 13:19:25 -04:00
p2sb.h
palmas.h dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
panel.h
part.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
part_efi.h
pca953x.h
pca9564.h
pca9698.h
pch.h
pci.h pci: Add standard PCIe ECAM macros 2021-11-17 17:04:58 -05:00
pci_ep.h
pci_gt64120.h
pci_ids.h
pci_msc01.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci_rom.h
pci_tegra.h
pe.h
phy-mipi-dphy.h
phy-sun4i-usb.h
phy.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
phy_interface.h net: replace the "xfi" phy-mode with "10gbase-r" 2021-09-28 18:50:56 +03:00
phys2bus.h
physmem.h
post.h ppc: Remove sbc8641d board 2021-07-07 19:52:24 -04:00
power-domain-uclass.h
power-domain.h treewide: Simply conditions with the new OF_REAL 2021-09-25 09:46:15 -06:00
ppc_asm.tmpl
ppc_defs.h
pvblock.h
pwm.h video: backlight: Support PWMs without a known period_ns 2021-04-10 16:07:12 +02:00
pwrseq.h
pxa_lcd.h
pxe_utils.h pxe: Allow calling the pxe_get logic directly 2021-11-11 19:02:43 -05:00
qfw.h x86: qemu: move QFW to its own uclass 2021-04-12 17:44:55 -04:00
ram.h
rand.h
rc4.h
regmap.h
reiserfs.h
relocate.h image: Avoid #ifdefs for manual relocation 2021-10-08 15:53:26 -04:00
remoteproc.h
reset-uclass.h
reset.h
rng.h
rtc.h
rtc_def.h
s_record.h
SA-1100.h
samsung-usb-phy-uboot.h
sandbox-adc.h
sandbox-clk.h
sandboxblockdev.h
sandboxfs.h
sandboxtee.h
sata.h
scf0403_lcd.h
scmi_agent-uclass.h
scmi_agent.h
scmi_protocols.h firmware: scmi: fix struct layout for scmi_clk_rate_set_in 2021-10-26 15:26:45 -04:00
scp03.h
scsi.h
sdhci.h drivers: mmc: Add wait_dat0 support for sdhci driver 2021-10-29 18:22:32 +09:00
sdp.h
search.h
serial.h
sh_pfc.h
signatures.h
sja1000.h
slre.h
smbios.h efi_loader: add SMBIOS table measurement 2021-10-26 17:58:14 +02:00
smem.h WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
smsc_lpc47m.h
smsc_sio1007.h
soc.h
sort.h
sound.h
sparse_defs.h
sparse_format.h
spartan2.h
spartan3.h
spd.h
spd_sdram.h
spi-mem.h spi: spi-mem: add spi_mem_dtr_supports_op() 2021-06-28 11:56:06 +05:30
spi.h
spi_flash.h mtd: spi-flash: Check for zero length in legacy spi_flash_*() 2021-10-23 15:47:33 +05:30
spl.h arm: spl: prepare for jumping to OPTEE 2021-10-25 17:17:24 -04:00
spl_gpio.h
splash.h
squashfs.h
st_logo_data.h WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
status_led.h
stdint.h
stdio.h serial: Rename SERIAL_SUPPORT to SERIAL 2021-09-04 12:26:01 -04:00
stdio_dev.h
stdlib.h
stm32_rcc.h
stratixII.h
string.h
sunxi_image.h
sy8106a.h
sym53c8xx.h
syscon.h
sysinfo.h sysinfo: Require that sysinfo_detect be called before other methods 2021-05-04 07:57:18 -04:00
sysreset.h watchdog: Automatically register device with sysreset 2021-11-04 08:57:19 +01:00
tables_csum.h
tca642x.h
tee.h tee: add a stub for tee_find_device 2021-10-05 08:44:48 -04:00
tegra-kbc.h
thermal.h
thor.h
ti-usb-phy-uboot.h
time.h
timer.h
timestamp.h
tlv_eeprom.h
tmu.h
tpm-common.h
tpm-v1.h
tpm-v2.h tpm2: Introduce TIS tpm core 2021-11-10 20:57:54 +01:00
tpm_api.h tpm: Add an API that can support v1.2 and v2 2021-03-02 15:53:37 -05:00
tps6586x.h
trace.h
tsec.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
tsi148.h
twl4030.h
twl6030.h
ubi_uboot.h cmd: ubifs: Factor out some checking codes into cmd_ubifs_mount() 2018-09-28 20:22:32 -04:00
ubifs_uboot.h
ubispl.h
uboot_aes.h
ufs.h
universe.h
usb.h
usb_cdc_acm.h
usb_defs.h
usb_ether.h net.h: Include linux/if_ether.h to avoid duplication 2018-10-10 12:28:52 -05:00
usb_mass_storage.h
usbdescriptors.h
usbdevice.h
usbroothubdes.h
uuid.h
vbe.h
versalpl.h
version.h Remove including timestamp.h in version.h 2021-09-17 12:10:44 -04:00
version_string.h version: Move version_string[] from version.h to version_string.h 2021-09-17 12:10:44 -04:00
video.h video: Add 30bpp support 2021-10-09 18:43:51 +02:00
video_bridge.h
video_console.h
video_easylogo.h
video_fb.h
video_font.h
video_font_4x6.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
video_font_data.h
video_osd.h
virtex2.h
virtio.h
virtio_ring.h
virtio_types.h
vsc7385.h
vsc9953.h
vsprintf.h lib: Add a function to convert a string to a hex value 2021-11-11 19:02:34 -05:00
vxworks.h
w1-eeprom.h w1: replace dt detection by automatic detection 2021-05-13 13:09:09 -04:00
w1.h w1: replace dt detection by automatic detection 2021-05-13 13:09:09 -04:00
w83c553f.h
wait_bit.h
watchdog.h Rename SPL_WATCHDOG_SUPPORT to SPL_WATCHDOG 2021-07-28 14:27:54 -04:00
wdt.h watchdog: wdt-uclass.c: add wdt_stop_all() helper 2021-08-31 12:04:03 +02:00
winbond_w83627.h
xen.h
xilinx.h
xyzModem.h common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
zfs_common.h
zynq_bootimg.h
zynqmp_firmware.h zynqmp_firmware: Add zynqmp firmware related enums 2021-08-06 09:35:34 +02:00
zynqmppl.h
zynqpl.h