diff options
author | adrian <adrian@FreeBSD.org> | 2013-04-05 00:26:06 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2013-04-05 00:26:06 +0000 |
commit | 2558987b708612ef20e0a95df89c443cb5edeb95 (patch) | |
tree | 3ce27bb6ad92b3ed48537cb25018bdc4696311c4 /lib/libc/regex/utils.h | |
parent | eed0ddb40ec886ec3cf62641ed35f796240252c9 (diff) | |
download | FreeBSD-src-2558987b708612ef20e0a95df89c443cb5edeb95.zip FreeBSD-src-2558987b708612ef20e0a95df89c443cb5edeb95.tar.gz |
Implement the AR933x interrupt driven UART code.
* Enable RX and host interrupts during bus probe/attach
* Disable all interrupts (+ host ISR) during bus detach
* Enable TX DONE interrupt only when we start transmitting; clear it when
we're done.
* The RX/TX FIFO depth is still conjecture on my part. I'll fix this
shortly.
* The TX FIFO interrupt isn't an "empty" interrupt, it's an "almost empty"
interrupt. Sigh. So..
* .. in ar933x_bus_transmit(), wait for the FIFO to drain before
continuing.
I dislike having to wait for the FIFO to drain, alas.
Tested:
* Atheros AP121 board, AR9331 SoC.
TODO:
* RX/TX overflow, RX error, BREAK support, etc.
* Figure out the true RX/TX FIFO depth.
Diffstat (limited to 'lib/libc/regex/utils.h')
0 files changed, 0 insertions, 0 deletions