Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Dec 2007 14:06:07 +0000
From:      "Wojciech A. Koszek" <wkoszek@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   [PATCH] Enabling uart(4) instead of sio(4) made easier.
Message-ID:  <20071223140607.GA13626@FreeBSD.czest.pl>

next in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071223140607.GA13626>