Re: [Etherboot-developers] PCI IDs in 5.1 drivers
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: <ebi...@ln...> - 2003-02-09 01:36:35
|
ke...@us... writes:
> Eric,
>
> How about this scheme?
>
> Define a macro with a distinctive name, say PCI_ID_ENTRY like this.
>
> #define PCI_ID_ENTRY(a,b,c) {a,b,c}
>
> Then use this macro in all the drivers like this:
>
> PCI_ID_ENTRY(PCI_VENDOR_ID_INTEL,PCI_DEVICE_ID,INTEL_82557,"Intel
> EtherExpressPro100"),
>
> PCI_ID_ENTRY(...),
> ...
>
> Or just use the bare numbers. This allows grep or a perl script to
> extract all the IDs to create the file NIC. If the symbolic names are
> used, then preprocess the output against pci.h using cpp.
That sounds reasonable.
A couple of things. I believe the NIC file still needs
to contain the list of drivers.
The filename for the driver with a particular compile option
needs to be in the table entry. We can replace the long
text string we currently have in the table, with the filename,
as we do not use the long string, and it just takes up space.
Unless I am mistaken the existing tables in the code should
be distinctive enough that a small perl script can parse them
out without the use of a special macro.
Additionally we should be able to get the list of isa drivers,
from a driver file as well.
Eric
|