summaryrefslogtreecommitdiffstats
path: root/contrib/diff/lib/unlocked-io.h
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2012-05-01 20:42:03 +0000
committermarius <marius@FreeBSD.org>2012-05-01 20:42:03 +0000
commit06cf74a20ccf547fa776829b60be5b3c32e8e33d (patch)
treea5da6d701b72791927d814aed7e452efefb10d9f /contrib/diff/lib/unlocked-io.h
parent7fa3df6adebc57f2d3be6876249657d54dd58aca (diff)
downloadFreeBSD-src-06cf74a20ccf547fa776829b60be5b3c32e8e33d.zip
FreeBSD-src-06cf74a20ccf547fa776829b60be5b3c32e8e33d.tar.gz
- Add missing locking in at91_usart_getc().
- Align the RX buffers on the cache line size, otherwise the requirement of partial cache line flushes on every are pretty much guaranteed. [1] - Make the code setting the RX timeout match its comment (apparently, start and stop bits were missed in the previous calculation). [1] - Cover the busdma operations in at91_usart_bus_{ipend,transmit}() with the hardware mutex, too, so these don't race against each other. - In at91_usart_bus_ipend(), reduce duplication in the code dealing with TX interrupts. - In at91_usart_bus_ipend(), turn the code dealing with RX interrupts into an else-if cascade in order reduce its complexity and to improve its run-time behavior. - In at91_usart_bus_ipend(), add missing BUS_DMASYNC_PREREAD calls on the RX buffer map before handing things over to the hardware again. [1] - In at91_usart_bus_getsig(), used a variable of sufficient width for storing the contents of USART_CSR. - Use KOBJMETHOD_END. - Remove an unused header. Submitted by: Ian Lepore [1] Reviewed by: Ian Lepore MFC after: 1 week
Diffstat (limited to 'contrib/diff/lib/unlocked-io.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud