summaryrefslogtreecommitdiffstats
path: root/sys/dev/uart/uart_dev_ns8250.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-09-10 05:01:08 +0000
committermarcel <marcel@FreeBSD.org>2003-09-10 05:01:08 +0000
commit0dc22d58efc879700a8c6cd8a607f8e902af36bf (patch)
treebafb0fbbafc5e53ca36a2f587ccd221f81a120cf /sys/dev/uart/uart_dev_ns8250.c
parentb6905f75eefbd4a3fd8d0ee1044e754ec2d30351 (diff)
downloadFreeBSD-src-0dc22d58efc879700a8c6cd8a607f8e902af36bf.zip
FreeBSD-src-0dc22d58efc879700a8c6cd8a607f8e902af36bf.tar.gz
If we failed to size the Rx FIFO, assume the worst. This however
is not a size of 1. Since we already know there is a FIFO, we can safely assume that it is at least 16 bytes. Note that all this is mostly academic anyway. We don't use the size of the Rx FIFO currently. If we add support for hardware flow control, we only care about Rx FIFO sizes larger than 16.
Diffstat (limited to 'sys/dev/uart/uart_dev_ns8250.c')
-rw-r--r--sys/dev/uart/uart_dev_ns8250.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/uart/uart_dev_ns8250.c b/sys/dev/uart/uart_dev_ns8250.c
index d09371d..ea5d5d0 100644
--- a/sys/dev/uart/uart_dev_ns8250.c
+++ b/sys/dev/uart/uart_dev_ns8250.c
@@ -638,7 +638,7 @@ ns8250_bus_probe(struct uart_softc *sc)
sc->sc_rxfifosz = 128;
device_set_desc(sc->sc_dev, "16950 or compatible");
} else {
- sc->sc_rxfifosz = 1;
+ sc->sc_rxfifosz = 16;
device_set_desc(sc->sc_dev,
"Non-standard ns8250 class UART with FIFOs");
}
OpenPOWER on IntegriCloud