From owner-svn-src-head@FreeBSD.ORG Mon Aug 19 15:51:31 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 607C1E65; Mon, 19 Aug 2013 15:51:31 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3385D2705; Mon, 19 Aug 2013 15:51:31 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r7JFpVIQ021010; Mon, 19 Aug 2013 15:51:31 GMT (envelope-from ian@svn.freebsd.org) Received: (from ian@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r7JFpUIY021004; Mon, 19 Aug 2013 15:51:30 GMT (envelope-from ian@svn.freebsd.org) Message-Id: <201308191551.r7JFpUIY021004@svn.freebsd.org> From: Ian Lepore Date: Mon, 19 Aug 2013 15:51:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r254534 - in head/sys: conf dev/uart X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Aug 2013 15:51:31 -0000 Author: ian Date: Mon Aug 19 15:51:30 2013 New Revision: 254534 URL: http://svnweb.freebsd.org/changeset/base/254534 Log: Allow UART_POLL_FREQ to be set as a kernel option as well as via tunable (the code was already set up for this, just needs to be in conf/options). Also, if reporting that polling is being used, report the frequency too. Modified: head/sys/conf/NOTES head/sys/conf/options head/sys/dev/uart/uart_core.c Modified: head/sys/conf/NOTES ============================================================================== --- head/sys/conf/NOTES Mon Aug 19 15:36:23 2013 (r254533) +++ head/sys/conf/NOTES Mon Aug 19 15:51:30 2013 (r254534) @@ -1801,6 +1801,8 @@ device uart # Options for uart(4) options UART_PPS_ON_CTS # Do time pulse capturing using CTS # instead of DCD. +options UART_POLL_FREQ # Set polling rate, used when hw has + # no interrupt support (50 Hz default). # The following hint should only be used for pure ISA devices. It is not # needed otherwise. Use of hints is strongly discouraged. Modified: head/sys/conf/options ============================================================================== --- head/sys/conf/options Mon Aug 19 15:36:23 2013 (r254533) +++ head/sys/conf/options Mon Aug 19 15:51:30 2013 (r254534) @@ -641,8 +641,9 @@ BKTR_SIS_VIA_MODE opt_bktr.h BKTR_USE_FREEBSD_SMBUS opt_bktr.h BKTR_NEW_MSP34XX_DRIVER opt_bktr.h -# Options to support PPS +# Options for uart(4) UART_PPS_ON_CTS opt_uart.h +UART_POLL_FREQ opt_uart.h # options for bus/device framework BUS_DEBUG opt_bus.h Modified: head/sys/dev/uart/uart_core.c ============================================================================== --- head/sys/dev/uart/uart_core.c Mon Aug 19 15:36:23 2013 (r254533) +++ head/sys/dev/uart/uart_core.c Mon Aug 19 15:51:30 2013 (r254534) @@ -537,7 +537,7 @@ uart_bus_attach(device_t dev) sep = ", "; } if (sc->sc_polled) { - printf("%spolled mode", sep); + printf("%spolled mode (%dHz)", sep, uart_poll_freq); sep = ", "; } printf("\n");