Re: devd + driver load by plugged device class how to ?
"M. Warner Losh" <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.mobile |
|---|---|
| Message-ID | <20050417.111015.77928634.imp__25042.3548779965$1113757716$gmane$org@bsdimp.com> |
In message: <1113740156.1018.6.camel@localhost>
Vladimir Grebenschikov <[email protected]> writes:
: Is there way to configure devd (or other daemon) to load appropriate
: driver by class, when device detected on bus, like:
Yes. That's what nomatch events are for. The default devd.conf
momatch entries in it.
: load ukbd.ko when USB keyboard plugged (same for other USB ums, ulpt,
: umass, etc)
usb doesn't support reprobing correctly yet, so this isn't possible
until it does.
: load atacard.ko, when ATA disk inserted into PCMCI slot
nomatch 10 {
match "bus" "pccard[0-9]+];
match "function_type" "4";
action "kldload atacard";
}
: load if_wi.ko when WLan card inserted into PCMCI slot
This device supports a large number of devices, so the list is rather
long...
Warner
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"