[PATCH] Enabling uart(4) instead of sio(4) made easier.

Wojciech A. Koszek wkoszek at freebsd.org
Sun Dec 23 05:16:45 PST 2007


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 at laptop:(/usr/src/sys/dev)$ grep -ri _ns8250 * | grep -v "^uart" 
	wkoszek at 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 at FreeBSD.org
http://FreeBSD.czest.pl/dunstan/


More information about the freebsd-current mailing list