From owner-cvs-all@FreeBSD.ORG Tue Sep 28 19:33:49 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D24616A4CF; Tue, 28 Sep 2004 19:33:49 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61A7E43D2F; Tue, 28 Sep 2004 19:33: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 i8SJXnu3005647; Tue, 28 Sep 2004 19:33:49 GMT (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i8SJXnfa005646; Tue, 28 Sep 2004 19:33:49 GMT (envelope-from phk) Message-Id: <200409281933.i8SJXnfa005646@repoman.freebsd.org> From: Poul-Henning Kamp Date: Tue, 28 Sep 2004 19:33: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/sys tty.h src/sys/kern tty.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 19:33:49 -0000 phk 2004-09-28 19:33:49 UTC FreeBSD src repository Modified files: sys/sys tty.h sys/kern tty.c Log: Add functions to create and free the "tty-ness" of a serial port in a generic way. This code will allow a similar amount of code to be removed from most if not all serial port drivers. Add generic cdevsw for tty devices. Add generic slave cdevsw for init/lock devices. Add ttypurge function which wakes up all know generic sleep points in the tty code, and calls into the hw-driver if it provides a method. Add ttycreate function which creates tty device and optionally cua device. In both cases .init/.lock devices are created as well. Change ttygone() slightly to also call the hw driver provided purge routine. Add ttyfree() which will purge and destroy the cdevs. Add ttyconsole mode for setting console friendly termios on a port. Revision Changes Path 1.233 +233 -6 src/sys/kern/tty.c 1.95 +7 -0 src/sys/sys/tty.h