[Etherboot-developers] PCI IDs in 5.1 drivers
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: <ke...@us...> - 2003-02-08 13:47:27
|
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.
|