Re: Question about serial console code

看板FB_hackers作者時間18年前 (2007/06/18 23:41), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/3 (看更多)
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 _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #16TgUK00 (FB_hackers)
文章代碼(AID): #16TgUK00 (FB_hackers)