From 16d953a46001e8852d63095e5310ed7869d109e7 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Mon, 12 May 2014 17:38:59 -0600 Subject: device_romstage: Add a way to move to the next device When trying to loop through all the devices in romstage, there was no function to just go from one to the next. This allows an easy way to go all the way down the chain of devices. Change-Id: Id205b24610d75de060b0d48fa283a2ab92d1df0a Signed-off-by: Martin Roth Reviewed-on: http://review.coreboot.org/5732 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones Reviewed-by: Paul Menzel --- src/include/device/device.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/device') diff --git a/src/include/device/device.h b/src/include/device/device.h index a4ef456add..dcd93f687f 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -236,6 +236,8 @@ u32 find_pci_tolm(struct bus *bus); ROMSTAGE_CONST struct device * dev_find_slot (unsigned int bus, unsigned int devfn); +ROMSTAGE_CONST struct device *dev_find_next_pci_device( + ROMSTAGE_CONST struct device *previous_dev); ROMSTAGE_CONST struct device * dev_find_slot_on_smbus (unsigned int bus, unsigned int addr); -- cgit v1.2.3