[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Detecting dialup connections
On Wed, Sep 29, 1999 at 07:50:35PM +0300, Martin-Eric Racine wrote:
> On Tue, 28 Sep 1999, Michael Schwingen wrote:
>
> > (ttyS*), or keep the historical names (which makes it difficult to decide on
> > names for new ports: the Milan currently has 1 MFP-style serial port[1], 2
> > enhanced 16550-style serial ports (with FIFOs), and TOS supports an
> > additional 8 16550-style UARTs on ISA cards).
>
> I suggest the following logic:
>
> 1) If a port offers CD (and the full complement of modem
> controls), call it modem*, otherwise use serial*.
>
> 2) If it uses an MFP, it should be modem1 or serial1, according
> to rule one above. SCC/ESCC ports are modem2 or serial2.
>
> Other ports that neither use an MFP or SCC could be numbered from
> serial3 and modem3, and following.
So you suggest that a Milan should have modem1 (MFP), modem3 and modem4, but
no modem2? Not very useful. A Milan without MFP-driven serial port would
then have only modem3 and modem4.
> The above logic flow is consistant with previous Atari products
> (except the Falcon, which calls it only MFP "modem1" even though
> it only provides RD/TD).
No. A standard falcon has no mfp-driven serial port. There are two SCC
channels, labeled "modem" and "LAN".
Furthermore, I see really no advantage in having separate names for ports
with CD and without CD. When used consequently, this would lead to different
names for
- full ports (9 lines)
- full port, but without RI
- port with only RxD, TxD, RTS and CTS
- Falcon MFP: only RxD+TxD
- LAN
plus other varieties that might come up. It is nice to know about these, but
an ioctl call seems much more appropriate for this purpose to me.
cu
Michael
--
Michael Schwingen, Ahornstrasse 36, 52074 Aachen