I also wonder if it wouldn't be wise to use enums instead of #defines
in /usr/include/linux/pci.h. (e.g. PCI_VENDOR_ID_CT 0x102c):
typedef enum {
...
CT = 0x102c,
...
} PCI_VENDOR_ID;
I'm not sure whether enums have their own scope in ANSI-C, but the
idea seems to be nice. Also I wonder if we can't sort all the IDs
that must be sorted during startup (as opposed to sortinmg while
typing them). It would be easier to find something if the IDs were
ordered by name instead of value.
Let's see what the others think!
Ulrich