Date: Fri, 19 Nov 2010 18:55:27 +0300 From: Lev Serebryakov <lev@serebryakov.spb.ru> To: freebsd-usb@freebsd.org Subject: Two questions: how to specify module-load function for driver module and which name of driver is better (according to "standards") Message-ID: <441397602.20101119185527@serebryakov.spb.ru>
next in thread | raw e-mail | index | archive | help
Hello, Freebsd-usb. I've implemented driver (ucom-subdriver) for MosChip 7820 and 7840 USB2COM multiport bridges. I have two questions: (1) How should I specify module-load function? DRIVER_MODULE() doesn't help much. I need to run some code only once, at very beginning, not for each probe/attach. GEOM modules have methods for it, but I can not find such methods for drivers. (2) Which name should I choose? Working name of module/driver/device is "mos7840", but it seems, that it is bad name: (a) All existing ucom-based drivers is "uXXXcom" (b) Driver instances looks ugly (like "mos78400") Is "umos7840com" good name or it is too long? :) We have "umoscom" driver for older MosChip chip in base already. --=20 // Black Lion AKA Lev Serebryakov <lev@serebryakov.spb.ru>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?441397602.20101119185527>