From owner-cvs-src@FreeBSD.ORG Tue Sep 28 20:23:49 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DBD716A4CE; Tue, 28 Sep 2004 20:23:49 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6455B43D48; Tue, 28 Sep 2004 20:23:49 +0000 (GMT) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i8SKNnNQ007169; Tue, 28 Sep 2004 20:23:49 GMT (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i8SKNnx8007168; Tue, 28 Sep 2004 20:23:49 GMT (envelope-from phk) Message-Id: <200409282023.i8SKNnx8007168@repoman.freebsd.org> From: Poul-Henning Kamp Date: Tue, 28 Sep 2004 20:23:49 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/usb ucom.c ucomvar.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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, 28 Sep 2004 20:23:49 -0000 phk 2004-09-28 20:23:49 UTC FreeBSD src repository Modified files: sys/dev/usb ucom.c ucomvar.h Log: Use generic infrastructure for the ucom driver instead of local stuff. This changes the naming of USB serial devices to: /dev/ttyU%d and /dev/cuaU%d for call-in and call-out devices respectively. (Please notice: capital 'U') Please also note that we now have .init and .lock devices for USB serial ports. These are not persistent across device removal. devd(8) can be used to configure them on attachment time. These changes also improve the chances of the system surviving if the USB device is unplugged at an inconvenient time. At least we do not rip things apart while there are any threads in the device driver anymore. Remove cdevsw, rely on the tty generic one. Don't make_dev(), use ttycreate() which does all the magic. In detach, do close procesing if we ripped things apart while the device was open. Call ttyfree() once we're done cleaning up. Revision Changes Path 1.54 +5 -37 src/sys/dev/usb/ucom.c 1.6 +0 -2 src/sys/dev/usb/ucomvar.h