Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jun 2007 08:39:48 -0700
From:      Marcel Moolenaar <xcllnt@mac.com>
To:        Christian Kandeler <christian.kandeler@hob.de>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Question about serial console code
Message-ID:  <5DD69BA8-586A-4B7F-B9B4-ECA9C74F41F3@mac.com>
In-Reply-To: <200706180859.15865.christian.kandeler@hob.de>
References:  <200706151541.51913.christian.kandeler@hob.de> <8D1F83C2-C7A6-4C86-88BE-17DD516DA4D9@mac.com> <200706180859.15865.christian.kandeler@hob.de>

next in thread | previous in thread | raw e-mail | index | archive | help

On Jun 17, 2007, at 11:59 PM, Christian Kandeler wrote:

>> If the UART has no FIFO (in the 16550-sense), then sc_txfifosz
>> is still 1.
>
> But where is this set? The ns8250_bus_probe() function returns  
> early when it
> detects a FIFO-less device, leaving sc_txfifosz at its pre- 
> initialized value
> (i.e. zero). And it doesn't seem to get set anywhere else, either.

Uhm, on line 817 in uart_dev_ns8250.c, which falls in function
uart_bus_probe(), both the rx and tx fifo sizes are set to 1.
This is for the case there's no fifo.
FYI,

-- 
Marcel Moolenaar
xcllnt@mac.com





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5DD69BA8-586A-4B7F-B9B4-ECA9C74F41F3>