From owner-cvs-src@FreeBSD.ORG Thu Jan 18 22:01:21 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1DB0F16A407; Thu, 18 Jan 2007 22:01:21 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id C1E5113C45A; Thu, 18 Jan 2007 22:01:20 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l0IM1KbU072421; Thu, 18 Jan 2007 22:01:20 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l0IM1Kdl072420; Thu, 18 Jan 2007 22:01:20 GMT (envelope-from marius) Message-Id: <200701182201.l0IM1Kdl072420@repoman.freebsd.org> From: Marius Strobl Date: Thu, 18 Jan 2007 22:01:20 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/arm/at91 uart_dev_at91usart.c src/sys/arm/sa11x0 uart_dev_sa1110.c src/sys/dev/uart uart_cpu.h uart_dev_ns8250.c uart_dev_sab82532.c uart_dev_z8530.c uart_kbd_sun.c 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: Thu, 18 Jan 2007 22:01:21 -0000 marius 2007-01-18 22:01:20 UTC FreeBSD src repository Modified files: sys/arm/at91 uart_dev_at91usart.c sys/arm/sa11x0 uart_dev_sa1110.c sys/dev/uart uart_cpu.h uart_dev_ns8250.c uart_dev_sab82532.c uart_dev_z8530.c uart_kbd_sun.c Log: - Add a uart_rxready() and corresponding device-specific implementations that can be used to check whether receive data is ready, i.e. whether the subsequent call of uart_poll() should return a char, and unlike uart_poll() doesn't actually receive data. - Remove the device-specific implementations of uart_poll() and implement uart_poll() in terms of uart_getc() and the newly added uart_rxready() in order to minimize code duplication. - In sunkbd(4) take advantage of uart_rxready() and use it to implement the polled mode part of sunkbd_check() so we don't need to buffer a potentially read char in the softc. - Fix some mis-indentation in sunkbd_read_char(). Discussed with: marcel Revision Changes Path 1.11 +5 -7 src/sys/arm/at91/uart_dev_at91usart.c 1.7 +5 -6 src/sys/arm/sa11x0/uart_dev_sa1110.c 1.11 +16 -2 src/sys/dev/uart/uart_cpu.h 1.24 +4 -6 src/sys/dev/uart/uart_dev_ns8250.c 1.15 +4 -6 src/sys/dev/uart/uart_dev_sab82532.c 1.21 +4 -6 src/sys/dev/uart/uart_dev_z8530.c 1.11 +7 -15 src/sys/dev/uart/uart_kbd_sun.c