coreboot-kgpe-d16/src/device
Tim Wawrzynczak 3d121ae1a1 device: Add pciexp_find_next_extended_cap function
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>
2022-02-10 12:48:00 +00:00
..
dram device/dram/ddr2.c: Fix log messages 2022-02-08 16:18:42 +00:00
oprom treewide: Remove "ERROR: "/"WARN: " prefixes from log messages 2022-02-07 23:29:09 +00:00
Kconfig Rename ECAM-specific MMCONF Kconfigs 2021-11-10 17:24:16 +00:00
Makefile.inc device/mipi: Move to drivers/mipi 2021-08-26 15:18:45 +00:00
azalia_device.c device/azalia_device: Drop unused function parameter 2021-11-11 22:45:04 +00:00
cardbus_device.c
cpu_device.c
device.c device: Add helper function devfn_disable() 2021-06-17 06:48:45 +00:00
device_const.c device: Drop unused function `dev_find_matching_device_on_bus` 2021-09-24 21:20:07 +00:00
device_util.c Rename ECAM-specific MMCONF Kconfigs 2021-11-10 17:24:16 +00:00
gpio.c
i2c.c
i2c_bus.c
mmio.c device/mmio: Make buffer_to_fifo32() take a const buffer 2021-09-20 12:07:51 +00:00
pci_class.c
pci_device.c treewide: Remove "ERROR: "/"WARN: " prefixes from log messages 2022-02-07 23:29:09 +00:00
pci_early.c src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
pci_ops.c Rename ECAM-specific MMCONF Kconfigs 2021-11-10 17:24:16 +00:00
pci_rom.c device/pci_rom: Add vga_oprom_preload 2021-11-15 16:16:02 +00:00
pciexp_device.c device: Add pciexp_find_next_extended_cap function 2022-02-10 12:48:00 +00:00
pcix_device.c
pnp_device.c treewide: Remove "ERROR: "/"WARN: " prefixes from log messages 2022-02-07 23:29:09 +00:00
resource_allocator_common.c
resource_allocator_v3.c
resource_allocator_v4.c src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
root_device.c
smbus_ops.c
software_i2c.c
xhci.c