Canonical order of dev_find_device()

Li-Ta Lo ollie at
Wed Apr 28 13:21:01 CEST 2004


Is there any order for dev_find_device() ? In linux
kernel, if there are two devices have the same vendor 
and device ID, the one with lower BUSDEVFN will be
returned first and when the function is called again
with the first returned device structure as parameter,
the one with higher BUSDEVFN will be returned. Is it
the same for LinuxBIOS ?

There are some hard coded BUS_DEV_FNs for 8111/8131 
bridges in mptable.c for all mainboards. Can we just
search for these bridges by ID instead of the hardcoded
values ?


More information about the coreboot mailing list