coreboot-kgpe-d16/src/include/device
Kyösti Mälkki ad7674ed00 device: Introduce pcidev_on_root() and friends
Semantics of dev_find_slot() are ill in the sense that
it only works after device enumeration has completed in
ramstage. Plan is to declare it as deprecated.

Introduce pcidev_on_root() and pcidev_path_on_root()
functions to replace cases where this was called with
static argument bus == 0. New implementation only walks
the root bus of the PCI tree, while old one walked
the entire linked list of devices.

Introduce pcidev_path_behind() to replace cases where
argument bus != 0. The required parent node is typically
one of the PCIe root functions that you locate using
pcidev_on_root() above.

New forms are safe to use with early devicetree and
before PCI bus numbers have been assigned.

Change-Id: Ie20598d48b4cf6e35e45fc90804bad4728437fc6
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/26447
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
2019-01-04 12:14:42 +00:00
..
dram nb/intel/sandybridge/raminit: Move fill_smbios17 to ddr3.c 2018-08-21 23:04:08 +00:00
azalia.h
azalia_device.h azalia: Add Azalia Reset macro 2018-11-29 12:20:44 +00:00
cardbus.h src: Use of device_t is deprecated 2018-06-14 09:29:31 +00:00
device.h device: Introduce pcidev_on_root() and friends 2019-01-04 12:14:42 +00:00
drm_dp_helper.h
early_smbus.h
hypertransport.h
hypertransport_def.h
i2c.h
i2c_bus.h
i2c_simple.h
path.h src: Add missing include <stdint.h> 2018-11-01 11:25:07 +00:00
pci.h device/pci_early: Fixes for __SIMPLE_DEVICE__ 2018-12-30 21:33:26 +00:00
pci_def.h device/pci: Add MSI-X helper functions 2018-07-19 13:52:28 +00:00
pci_ehci.h
pci_ids.h sb/intel/lynxpoint: Handle H81 only having 6 PCIe root ports 2018-12-28 12:22:35 +00:00
pci_ops.h src: Get rid of device_t 2019-01-04 12:11:18 +00:00
pci_rom.h
pci_type.h src: Move {pci,pnp}_devfn_t to common 'device/pci_type.h' 2019-01-04 12:13:20 +00:00
pciexp.h src: Use of device_t is deprecated 2018-06-14 09:29:31 +00:00
pcix.h src: Use of device_t is deprecated 2018-06-14 09:29:31 +00:00
pnp.h include/device/pnp.h: Don't use device_t 2018-09-21 14:11:54 +00:00
pnp_def.h
resource.h
smbus.h src: Get rid of device_t 2019-01-04 12:11:18 +00:00
smbus_def.h
spi.h