by Bruce Korb[permalink] [raw]
This patch will unify the PCI device information between the
PCI driver database (pci.ids), the PCI-IDE bridges (ide-pci.c)
and the header that should enumerate all pci devices (pci_ids.h).
It does this by putting all the data into a single file and
tagging the values with names. These named values are then
inserted into the output files. This will provide for guaranteed
consistency, which is not now the case. In fact, there were some
unresolvable inconsistencies in the data that are marked with
The patches are against linux-2.4.0-test11.
There are other PCI device tables that could be generated as well.
As it happens, though, I am only interested in PCI/IDE bridges.
The rest are left as exercises for the reader. :-)
Hand edited files:
pci.def -- replacement for drivers/pci/pci.ids
pci_ids.tpl -- Template for producing generated files
:mkpcidev -- Script for constructing files (read before use!)
PATCH -- a patch for the following files:
drivers/pci/gen-devlist.c -- obsolete
drivers/pci/devlist.h replacement for devlist.h and classlist.h
drivers/ide/ide-pci.h Replacement for hand-coded tables in ide-pci.c
The patches mostly remove data that are now generated.
However, some were changed because it is no longer possible to
create #define-d values with mixed case (a lower case `x').
For the ide-pci.c file, however, it also renames macros that
are inconsistent with the device names already defined in
The tool that makes this all happen is: