Re: [Etherboot-developers] why does scan_bus() in pci.c ....?
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: Ken Y. <ke...@nl...> - 2001-02-20 01:10:18
|
|I am corrected. The fault is mine. It derives from my project requirement to |identify, not just the first, rather all the ethernet adapters on the bus. What you probably want to do is pass an array of addresses and an array PCI structures instead of just one, say limited to 2 or some compile time constant. Then you can pass these arrays from the caller in config.c. (Etherboot has no support for heap allocation, keeps things simple and avoids problems with memory allocation.) The number of candidate NICs found can be indicated by terminating the pci_addr array with a 0. |