Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Mar 2004 21:09:46 +0200
From:      Bernd Walter <ticso@cicely12.cicely.de>
To:        jitendra pande <jpande_techinfo@yahoo.com>
Cc:        toni@soth.at
Subject:   Re: Problem with usb in FreeBSD 4.8....help!!!
Message-ID:  <20040329190944.GM26269@cicely12.cicely.de>
In-Reply-To: <20040329141556.82901.qmail@web42005.mail.yahoo.com>
References:  <20040328235144.GA9389@tv.soth.at> <20040329141556.82901.qmail@web42005.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 29, 2004 at 06:15:56AM -0800, jitendra pande wrote:
> Hi Toni,
>  
> Thanks a lot for the information.
>  
> My device is the one which supports control transfers only thus i understand that for a second device i need to use /dev/ugen1 and so on.

Yes - /dev/ugen? is the control endpoint - if your device only supports
controll transfers that's all you need.
Otherwise you may need /dev/ugen?.? for the endpoints, but
./MAKEDEV ugen1 will also create /dev/ugen1.1 to ugen1.15.
While ugen0 uses /dev/ugen0* node ugen1 uses /dev/ugen1*, and so on.
So if your are using 6 devices of ugen type at the same time you want
to have at least /dev/ugen0 to /dev/ugen5.

> Does that mean, i need to explictly make a node /dev/ugen1 and /dev/ugen2 and so on for  every newly added USB device using MAKEDEV script. 

You can create them forhanded.
No need to wait until you really need them.
The following will create ugen0* to ugen19*:
cd /dev && jot 20 0 | sed 's/\(.*\)/.\/MAKEDEV ugen\1' | sh

-- 
B.Walter                   BWCT                http://www.bwct.de
ticso@bwct.de                                  info@bwct.de



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040329190944.GM26269>