Subject: re: lkm for pci device
To: Quentin Garnier <cube@NetBSD.org>
From: matthew green <firstname.lastname@example.org>
Date: 07/03/2004 17:46:44
> The problem is that the autoconfig code isn't set up to rescan the PCI
> bus, thus there's no easy way to notice your new driver. Also, I'm not
> sure if there's an easy way to punch your driver into the PCI
> discovery code.
Well, there is pci_find_device() for that purpose. The drawback is that
you have to be very careful not to attach to just anything, as you can't
know if someone has already mapped regions or interrupts before you.
it also only attaches the very first one it finds...