diff options
author | ian <ian@FreeBSD.org> | 2013-03-31 23:24:04 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2013-03-31 23:24:04 +0000 |
commit | 2b56a5ce50807c0c4197f17f42b23f069dab02ba (patch) | |
tree | 56ef5677ed1bdc04549dfebddf3f2021382947fe /sys/libkern/strcmp.c | |
parent | f370876f88224b709659a34169f56abc39f89efb (diff) | |
download | FreeBSD-src-2b56a5ce50807c0c4197f17f42b23f069dab02ba.zip FreeBSD-src-2b56a5ce50807c0c4197f17f42b23f069dab02ba.tar.gz |
Accommodate uart devices with large FIFOs (or DMA buffers which amount
to the same thing) by allocating the uart(4) rx buffer based on the
device's rxfifosz rather than using a hard-coded size of 384 bytes.
The historical 384 byte size is 3 times the largest hard-coded fifo
size in the tree, so use that ratio as a guide and allocate the buffer
as three times rxfifosz, but never smaller than the historical size.
Diffstat (limited to 'sys/libkern/strcmp.c')
0 files changed, 0 insertions, 0 deletions