I do know you've wasted longer time than me. ;) Actually what I need are host controller drivers. Just picked up uaudio(4) to learn things because it looked odder than others. But thanks for the patch.
On Fri, Mar 26, 2010 at 3:14 PM, Antti Kantee <po...@cs.hut.fi> wrote: (snip) > Index: modules/uaudio/Makefile > =================================================================== > RCS file: /cvsroot/src/sys/modules/uaudio/Makefile,v > retrieving revision 1.1 > diff -p -u -r1.1 Makefile > --- modules/uaudio/Makefile 28 Jun 2008 09:14:56 -0000 1.1 > +++ modules/uaudio/Makefile 26 Mar 2010 06:11:39 -0000 > @@ -5,6 +5,7 @@ > .PATH: ${S}/dev/usb > > KMOD= uaudio > +IOCONF= UAUDIO.ioconf > SRCS= uaudio.c > > .include <bsd.kmodule.mk> Surely this intermediate makefile and directory can go away, eventually. > Index: modules/uaudio/UAUDIO.ioconf > =================================================================== > RCS file: modules/uaudio/UAUDIO.ioconf > diff -N modules/uaudio/UAUDIO.ioconf > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ modules/uaudio/UAUDIO.ioconf 26 Mar 2010 06:11:39 -0000 > @@ -0,0 +1,12 @@ > +# $NetBSD$ > +# > + > +ioconf uaudio > + > +include "conf/files" > +include "dev/usb/files.usb" > + > +pseudo-root uhub* > + > +# USB audio > +uaudio* at uhub? port ? configuration ? I see this is toward the direction I'm going too. We can teach config(1) to analyze dependency & generate the necessary stub for modules, including the default cfdata part, *in theory*. Masao