Re: [Etherboot-developers] secrets behind symbol, INCLUDE_LANCE ?
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: Ken Y. <ke...@nl...> - 2001-02-06 23:45:01
|
|Have been studying the lance driver for some time. Of course confusion |reigns. The confusion stems from the conditional compilation symbol, |INCLUDE_LANCE. Here is why. The confusion is because INCLUDE_LANCE is a bit of a misnomer. It really means "this is a PCI lance card". |Where the probe routine definition occurs, the entry point to lancepci_probe |is defined within an ifdef INCLUDE_LANCE. But there is no alternative |definition to serve in the case the symbol is undefined. If the symbol is undefined, one of the others will be, INCLUDE_NE2100 or INCLUDE_NI6510. I'm guessing since you probably have a PCI lance card, you should continue to use INCLUDE_LANCE. To add an entry to the PCI entries for lance, edit config.c and NIC. Also add an entry to chip_table[] in lance.c. |I don't mean to be picky here but I have to modify the driver to accommodate |a second nic. Further to this end it is necessary for me to understand |driver subtleties that seem to be eluding me. If by second NIC you mean detecting two cards on the same machine rather than adding a new type of card to the table, you are entering unchartered territory. I don't think the current code will work for more than one card without large modifications, there are too many non-reentrancies in the code. |