From owner-cvs-src@FreeBSD.ORG Tue Jul 22 14:23:31 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A710106564A; Tue, 22 Jul 2008 14:23:31 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail04.syd.optusnet.com.au (mail04.syd.optusnet.com.au [211.29.132.185]) by mx1.freebsd.org (Postfix) with ESMTP id 950208FC16; Tue, 22 Jul 2008 14:23:30 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from c220-239-252-11.carlnfd3.nsw.optusnet.com.au (c220-239-252-11.carlnfd3.nsw.optusnet.com.au [220.239.252.11]) by mail04.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m6MENReQ000347 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Jul 2008 00:23:28 +1000 Date: Wed, 23 Jul 2008 00:23:27 +1000 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: John Baldwin In-Reply-To: <200807211732.07938.jhb@freebsd.org> Message-ID: <20080722233851.L17712@delplex.bde.org> References: <200807191908.m6JJ8bsq040646@repoman.freebsd.org> <200807211107.21345.jhb@freebsd.org> <200807211732.07938.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Marcel Moolenaar , cvs-src@FreeBSD.org, Marcel Moolenaar , cvs-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: cvs commit: src/etc remote X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2008 14:23:31 -0000 On Mon, 21 Jul 2008, John Baldwin wrote: > On Monday 21 July 2008 05:22:15 pm Marcel Moolenaar wrote: >> >> On Jul 21, 2008, at 8:07 AM, John Baldwin wrote: >> >>> On Saturday 19 July 2008 03:08:22 pm Marcel Moolenaar wrote: >>>> marcel 2008-07-19 19:08:22 UTC >>>> >>>> FreeBSD src repository >>>> >>>> Modified files: >>>> etc remote >>>> Log: >>>> SVN rev 180615 on 2008-07-19 19:08:22Z by marcel >>>> >>>> With uart(4) default, change /dev/cuad# to /dev/cuau# so that >>>> out-of-the-box FreeBSD is consistent. Add uart[0-7] as a >>>> fingerfriendly shortcut alongside sio[0-7] and com[1-8]. >>> >>> Perhaps the sioX aliases should either be removed or still >>> reference /dev/cuadX? Having them reference the uart(4) devices >>> might be >>> confusing. rc.d/serial was (not quite) similarly broken. In rc.d/serial, there is supposed to be a set of config line for each driver. This is unfortunately necessary for the same reasons that separate config lines for ethernet drivers are necessary (it is too hard to map multiple devices/drivers to the same device namespace, and we don't want that anyway (anyone here want eth*?). Now there are no lines for sio devices, but there are still lines for unusual devices (just a couple that were maintained enought to have lines there). >> I was mostly thinking in terms of backward compatibility. >> sioX will map to a working port now. I can certainly remove >> sioX from the aliases, but that may break existing setups. >> I don't know if adding sioX aliases for /dev/cuadX is useful. >> I think sioX should either not exist or be an useful alias. I think that uart should not exist, but then I'm biased. >> >> Thoughts? > > I would just remove them. I'm not sure how often they are really used since > they are specific to a driver name as opposed to COM1/COM2 which some boxes > have as labels on the case for the physical ports. This is mostly backwards. COM* was the IBM PC's (or IBM's?) name for serial ports. It wasn't really a 386 name, but, 386BSD used it for the i386 serial driver. rgrimes hated it more than me, so he changed the name of the driver from com to sio and the device name from com* to ttyd*. I forget if the d was traditional. More likely the a in cuaa* was traditional. "uart" is more specialized than "sio", but not much more (just the "a" for asynchronous in it). "sio" is still too generic (most serial devices are now ethernet or USB), but it is better than an industry acronym like UART, and much better than "tty". Of course, the correct name is CIA. Everyone knows what that is ;-). (It is Communications Interface Adaptor. I changed the industry acronym of ACIA to get a more interesting name. Initial development of sio's technology was on a device named an ACIA by its manufacturer (Motorola 6850).) Bruce