diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-09-10 10:09:41 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-09-11 19:46:10 +0000 |
commit | 6b1dace9f456d5b1b160402866045c3659e665e0 (patch) | |
tree | 6e63bbea7bf6ec8a601c839af64a0a40091caf13 /include/uart.h | |
parent | eff7a1910a60b1d30b10257fd4a12b5ed1402594 (diff) | |
download | chrome-ec-6b1dace9f456d5b1b160402866045c3659e665e0.tar.gz |
Split uart_process() into input and output processing
This is a precursor to DMA-based UART transfers, which require
different processing for DMA vs PIO output types.
BUG=chrome-os-partner:20485
BRANCH=pit
TEST=Boot pit; verify EC console still works.
Change-Id: I6d6f55561eeebe9bd2928b2bfb25278c86f689d1
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/168811
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/uart.h')
-rw-r--r-- | include/uart.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/include/uart.h b/include/uart.h index 05d4aee036..fa50645270 100644 --- a/include/uart.h +++ b/include/uart.h @@ -178,14 +178,20 @@ void uart_tx_stop(void); int uart_tx_stopped(void); /** - * Helper for UART processing. + * Helper for processing UART input. * - * Reads the input FIFO until empty, then fills the output FIFO until the - * transmit buffer is empty or the FIFO full. + * Reads the input FIFO until empty. Intended to be called from the driver + * interrupt handler. + */ +void uart_process_input(void); + +/** + * Helper for processing UART output. * - * Designed to be called from the driver interrupt handler. + * Fills the output FIFO until the transmit buffer is empty or the FIFO full. + * Intended to be called from the driver interrupt handler. */ -void uart_process(void); +void uart_process_output(void); /* * COMx functions |