Ignore:
Timestamp:
Jun 27, 2017, 9:56:10 AM (7 years ago)
Author:
max@…
Message:

style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/drivers/soclib/soclib_tty.h

    r4 r66  
    3535
    3636/****************************************************************************************
    37  *     SOCLIB_TTY registers offsets 
     37 *     SOCLIB_TTY registers offsets
    3838 ***************************************************************************************/
    3939
     
    4646
    4747/****************************************************************************************
    48  * masks for TTY_STATUS_REG 
     48 * masks for TTY_STATUS_REG
    4949 ***************************************************************************************/
    5050
     
    5353
    5454/****************************************************************************************
    55  * masks for TTY_CONFIG_REG 
     55 * masks for TTY_CONFIG_REG
    5656 ***************************************************************************************/
    5757
     
    6161/****************************************************************************************
    6262 * 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.
    6464 ****************************************************************************************
    6565 * @ chdev     : pointer on the TXT chdev descriptor.
     
    8383/****************************************************************************************
    8484 * 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.
    8787 *   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"
    9090 *   command arguments and returns for retry.
    91  * When the I/O operation is completed, it set the status field in the command, unblock
    92  * 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.
    9393 ****************************************************************************************
    9494 * @ chdev     : local pointer on TXT chdev descriptor.
Note: See TracChangeset for help on using the changeset viewer.