From owner-freebsd-current@FreeBSD.ORG Sun Dec 23 13:16:45 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDDC516A41A for ; Sun, 23 Dec 2007 13:16:45 +0000 (UTC) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by mx1.freebsd.org (Postfix) with ESMTP id 60CC713C455 for ; Sun, 23 Dec 2007 13:16:45 +0000 (UTC) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by freebsd.czest.pl (8.13.4/8.12.9) with ESMTP id lBNE68Ku015961 for ; Sun, 23 Dec 2007 14:06:08 GMT (envelope-from dunstan@freebsd.czest.pl) Received: (from dunstan@localhost) by freebsd.czest.pl (8.13.4/8.12.9/Submit) id lBNE68Fa015960 for freebsd-current@freebsd.org; Sun, 23 Dec 2007 14:06:08 GMT (envelope-from dunstan) Date: Sun, 23 Dec 2007 14:06:07 +0000 From: "Wojciech A. Koszek" To: freebsd-current@freebsd.org Message-ID: <20071223140607.GA13626@FreeBSD.czest.pl> Mail-Followup-To: "Wojciech A. Koszek" , freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-2.0.2 (freebsd.czest.pl [80.48.250.4]); Sun, 23 Dec 2007 14:06:08 +0000 (UTC) Subject: [PATCH] Enabling uart(4) instead of sio(4) made easier. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Dec 2007 13:16:45 -0000 Hello, In order to make sio(4) working correctly, sio(4)-friendly hint.sio.* variables must be present in GENERIC.hints (installed as device.hints). We already ship with this functionality and configuration enabled. uart(4) has similar requirements. The difference is that uart(4)-specific variables are different than those used by sio(4). The problem lies in lacking of hint.uart.* lines in our GENERIC.hints files. Thus, user wanting to use uart(4) instead of sio(4) must manually modify device.hints. I belive it's not intentional behaviour for us to have only sio(4) specified, since DEFAULTS on i386 already says: device uart_ns8250 This file implements interface which I think is only used by uart(4) driver: wkoszek@laptop:(/usr/src/sys/dev)$ grep -ri _ns8250 * | grep -v "^uart" wkoszek@laptop:(/usr/src/sys/dev)$ I propose following change: http://people.freebsd.org/~wkoszek/patches/uart-hints.0.patch Comments and suggestions are welcome. -- Wojciech A. Koszek wkoszek@FreeBSD.org http://FreeBSD.czest.pl/dunstan/