Subject: Re: ucycom driver
To: Nick Hudson <email@example.com>
From: Quentin Garnier <firstname.lastname@example.org>
Date: 05/12/2005 15:31:35
Content-Type: text/plain; charset=us-ascii
On Thu, May 12, 2005 at 11:39:27AM +0100, Nick Hudson wrote:
> On Thursday 12 May 2005 08:00, Quentin Garnier wrote:
> > On Thu, May 12, 2005 at 06:41:37AM +0000, Nick Hudson wrote:
> > > How should I allocate a major number for this driver? Do I pick the n=
> > > available, or try and make it common across archs?
> > Adding it to sys/files/majors will make it common for all archs.
> OK, but should I do that? Why wasn't the nsmb major done that way?
Because the move to unified major numbers was done after its addition.
Ideally we would make all MI major numbers the same, but the real world
is not a friendly place for ideals :)
While reading the code, though, I was wondering how difficult it would
be to have an ucom(4) attaching to this device instead of mostly
replicating all the code. AFAICT, it should be possible to do that by
adding a few methods to ucom_methods and making ucom(4) use them
instead of making calls to usbd_* at the relevant places.
That would save you a lot of documentation as to where to find the
relevant device node, at least ;)
Of course, I'm really no expert of the USB code, so I might be missing
Quentin Garnier - email@example.com - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)
-----END PGP SIGNATURE-----