Subject: Re: port-amiga/794: MAKEDEV doesn't build mfcs devices
To: None <netbsd-bugs@NetBSD.ORG, tsarna@endicor.com>
From: Stephen J. Roznowski <sjr@zombie.ncsc.mil>
List: netbsd-bugs
Date: 02/11/1995 19:35:22
> From: Ty Sarna <tsarna@endicor.com>
> 
> Stephen J. Roznowski wrote:
> > 
> > > > 	+ mfcs)
> > > > 	+ 	rm -f tty01 tty02 ttym1 ttym2
> > > > 	+ 	mkdir tty01 c 17 0
> > > > 	+ 	mkdir tty02 c 17 1
> > > > 	+ 	mkdir ttym1 c 17 128
> > > > 	+ 	mkdir ttym2 c 17 129
> > > > 	+ 	chmod 666 tty01 tty02 ttym1 ttym2
> > > > 	+ 	;;
> > > 
> > > This is bogus... one can have two (or more) MFC's installed. One could
> > 
> > I agree that this is bogus. I can't think of a general purpose
> > solution; if you have one, send it in. As it currently stands
> > there are NO ENTRIES in /dev/MAKEDEV to build any devices for
> > this card -- I gotta believe that this is a better solution
> > than NOTHING.
> 
> As I said, at the very least this should be parameterized. See hp300
> MAKEDEV dcm entry for an example. Also, there is a problem with the 11th
> serial port (which could theoretically happen already... A3000T or A4000
> with 5 MFC's plus internal). tty00/ttym0 ... tty09/ttym9, and then what?
> tty10/ttym10? So that call in-in ports have leading zeros but call-outs
> don't? That's not very consistent. I suggest making it ttyNN/ttymNN
> consistenty (including changing the ser entry), or dropping the ttym
> name for the more "standard" cua name, so we'd have ttyNN/cuaNN. I guess
> we can just ignore the other problem for now, unit ql or some other
> serial driver goes in the tree.

I'll answer the easy question first... The "11th" port would be 'a'
just like ttyp?.

As I stated, I don't see how to parameterized this correctly. Who says
where the tty?? devices start (I know how to parameterized the unit
information, but didn't see the point if I couldn't do the other part
correctly). How can I tell that mfcs port 1 should be tty01 or tty07
or tty0c or ...? [Same thing for the parallel ports...]

If you believe that the ttym? should become cua??, SUBMIT A SEND-PR!

----
I'm sorry to be sounding "hostile" about this. If you don't like something
that I'm proposing, submit an alternative (preferable using send-pr) and
let the Amiga port maintainer do the choosing.

-SR