Messages in this thread | | | Date | Thu, 30 Aug 2001 16:18:09 -0700 | From | Greg KH <> | Subject | Re: [ANNOUNCE] Hardware detection tool 0.2 |
| |
On Thu, Aug 30, 2001 at 07:40:25PM -0300, Carlos E Gorges wrote: > Hardware detection tool 0.2 > > The main idea is keep a unified database of modules and > create a good tool for hardware configurators.
Why don't you just pull the PCI and USB module information out of the drivers themselves? All the information you need it in the MODULE_DEVICE_TABLE() macro. You don't get a pretty vendor string for most all of the USB devices that use a USB class spec, but that isn't necessary.
All you are caring about is what device is supported by what module, right? That can be easily determined by the info in the modules.usbmap and modules.pcimap files in the /lib/modules/<kernel_version>/ directory.
Keeping tables like these will be a tough thing to do, that's why the linux-hotplug project relies on the drivers themselves to do the work.
thanks,
greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |