[syslinux] [PATCH] pci: Introduce slot and function information
H. Peter Anvin
hpa at zytor.com
Mon Jul 14 09:35:36 PDT 2008
Keith Schincke wrote:
> Out of habit, I would vote for the second option as a more correct
> solution.
>
> What would be the maximum fixed size of the pci_device array? Which has a
> smaller object code size? Which would have a shorter runtime? Do you have
> pre-built linked list functions?
>
> I am not a hardware expert, but can't some systems have multiple PCI buses?
> Wouldn't this make it difficult to have a fixed array?
>
The maximum size is: 256 busses x 32 devices x 8 functions.
The object code size would be slightly smaller for the fixed-size.
Runtime is likely to be inconsequential either way.
I don't have pre-built linked lists, but, sheesh, they're linked lists...
There are systems with multiple PCI busses, and there are systems with
multiple PCI *domains*. There is no system-independent way to get to
the nonzero PCI domains; that needs OS support. Systems with so-called
peer PCI busses will be detected in normal order.
-hpa
More information about the Syslinux
mailing list