Changeset 66 for trunk/kernel/drivers/soclib/soclib_tty.h
- Timestamp:
- Jun 27, 2017, 9:56:10 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/drivers/soclib/soclib_tty.h
r4 r66 35 35 36 36 /**************************************************************************************** 37 * SOCLIB_TTY registers offsets 37 * SOCLIB_TTY registers offsets 38 38 ***************************************************************************************/ 39 39 … … 46 46 47 47 /**************************************************************************************** 48 * masks for TTY_STATUS_REG 48 * masks for TTY_STATUS_REG 49 49 ***************************************************************************************/ 50 50 … … 53 53 54 54 /**************************************************************************************** 55 * masks for TTY_CONFIG_REG 55 * masks for TTY_CONFIG_REG 56 56 ***************************************************************************************/ 57 57 … … 61 61 /**************************************************************************************** 62 62 * This function masks both the TTY_RX and TTY_TX IRQs. 63 * Thes IRQs are unmasked by the soclib_tty_cmd() function.63 * These IRQs are unmasked by the soclib_tty_cmd() function. 64 64 **************************************************************************************** 65 65 * @ chdev : pointer on the TXT chdev descriptor. … … 83 83 /**************************************************************************************** 84 84 * This ISR should be executed only for the TXT_READ and TXT_WRITE commands. 85 * It get the command arguments from the first client thread in the TXT chdev queue:86 * - if TXT_READ, it transfer one byte from the TTY_READ_REG to the command buffer.85 * It gets the command arguments from the first client thread in the TXT chdev queue: 86 * - if TXT_READ, it transfers one byte from the TTY_READ_REG to the command buffer. 87 87 * It simply returns for retry if TTY_READ_REG is empty. 88 * - if TXT_WRITE, it tries to transfer several bytes from the command buffer to the 89 * TTY_WRITE_REG. If the TTY_WRITE_REG is full, it updates the "count" and "buffer" 88 * - if TXT_WRITE, it tries to transfer several bytes from the command buffer to the 89 * TTY_WRITE_REG. If the TTY_WRITE_REG is full, it updates the "count" and "buffer" 90 90 * command arguments and returns for retry. 91 * When the I/O operation is completed, it set the status field in the command, unblock92 * the server thread, and unblock the client thread.91 * When the I/O operation is completed, it sets the status field in the command, unblocks 92 * the server thread, and unblocks the client thread. 93 93 **************************************************************************************** 94 94 * @ chdev : local pointer on TXT chdev descriptor.
Note: See TracChangeset
for help on using the changeset viewer.