3d121ae1a1
Some PCIe devices have extended capability lists that contain multiples instances of the same capability. This patch provides a function similar to pciexp_find_extended_cap that can be used to search through multiple instances of the same capability by returning the offset of the next extended capability of the given type following the passed-in offset. The base functionality of searching for a given capability from an offset is extracted to a local helper function and both pciexp_find_extended_cap and pciexp_find_next_extended_cap use this helper. Change-Id: Ie68dc26012ba57650484c4f2ff53cc694a5347aa Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/57784 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Reviewed-by: Nick Vaccaro <nvaccaro@google.com> |
||
---|---|---|
.. | ||
acpi | ||
boot | ||
console | ||
cpu | ||
device | ||
efi | ||
mipi | ||
pc80 | ||
smp | ||
superio | ||
sys | ||
adainit.h | ||
asan.h | ||
assert.h | ||
b64_decode.h | ||
base3.h | ||
boardid.h | ||
boot_device.h | ||
bootblock_common.h | ||
bootmem.h | ||
bootmode.h | ||
bootsplash.h | ||
bootstate.h | ||
cbfs.h | ||
cbfs_glue.h | ||
cbmem.h | ||
cper.h | ||
crc_byte.h | ||
ctype.h | ||
delay.h | ||
device_tree.h | ||
dimm_info_util.h | ||
dp_aux.h | ||
edid.h | ||
elog.h | ||
endian.h | ||
espi.h | ||
fallback.h | ||
fit.h | ||
fmap.h | ||
framebuffer_info.h | ||
fw_config.h | ||
gpio.h | ||
halt.h | ||
imd.h | ||
imd_private.h | ||
input-event-codes.h | ||
inttypes.h | ||
ip_checksum.h | ||
kconfig.h | ||
lib.h | ||
limits.h | ||
list.h | ||
main_decl.h | ||
memlayout.h | ||
memory_info.h | ||
memrange.h | ||
metadata_hash.h | ||
mrc_cache.h | ||
nhlt.h | ||
option.h | ||
post.h | ||
program_loading.h | ||
ramdetect.h | ||
random.h | ||
reg_script.h | ||
region_file.h | ||
reset.h | ||
rmodule.h | ||
romstage_handoff.h | ||
rtc.h | ||
rules.h | ||
sar.h | ||
sdram_mode.h | ||
smbios.h | ||
smmstore.h | ||
spd.h | ||
spd_bin.h | ||
spd_cache.h | ||
spi-generic.h | ||
spi_bitbang.h | ||
spi_flash.h | ||
spi_sdcard.h | ||
stage_cache.h | ||
stdarg.h | ||
stdbool.h | ||
stddef.h | ||
stdint.h | ||
stdio.h | ||
stdlib.h | ||
string.h | ||
swab.h | ||
symbols.h | ||
thread.h | ||
timer.h | ||
timestamp.h | ||
types.h | ||
uuid.h | ||
vbe.h | ||
version.h | ||
watchdog.h | ||
wrdd.h |