Ignore:
Timestamp:
Jun 26, 2017, 1:40:02 PM (5 years ago)
Author:
max@…
Message:

style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_txt.h

    r23 r49  
    11/*
    22 * dev_txt.h - TXT (Text Terminal) generic device API definition.
    3  * 
     3 *
    44 * Author  Alain Greiner    (2016)
    55 *
     
    3535 *     Generic Text Terminal device definition.
    3636 *
    37  * This multi-channels generic TXT device provide access to a text terminal.
     37 * This multi-channels generic TXT device provides access to a text terminal.
    3838 * It supports three operation types :
    3939 * - TXT_READ : read a single character from the text terminal identified by its channel
     
    4242 *   index, using a descheduling strategy for the calling thread.
    4343 * - TXT_SYNC_WRITE : write a character string to the terminal identified by its channel
    44  *   index, using a busy waiting strategy for the calling thread. 
     44 *   index, using a busy waiting strategy for the calling thread.
    4545 *****************************************************************************************/
    4646
     
    5252enum txt_impl_e
    5353{
    54     IMPL_TXT_TTY =   0,     
    55     IMPL_TXT_X86 =   1, 
     54    IMPL_TXT_TTY =   0,
     55    IMPL_TXT_X86 =   1,
    5656}
    5757txt_impl_t;
    5858
    5959/******************************************************************************************
    60  * This defines the (implementation independant) command passed to the driver.
     60 * This defines the (implementation independent) command passed to the driver.
    6161 *****************************************************************************************/
    6262
     
    8080/******************************************************************************************
    8181 * This function completes the TXT chdev descriptor initialisation,
    82 i * namely the link with the implementation specific driver.
     82 * namely the link with the implementation specific driver.
    8383 * The func, impl, channel, is_rxt, base fields have been previously initialised.
    8484 * It calls the specific driver initialisation function, to initialise the hardware
     
    9292
    9393/******************************************************************************************
    94  * This blocking function read a single character from the terminal identified
     94 * This blocking function reads a single character from the terminal identified
    9595 * by the "channel" argument. The corresponding request is actually registered in the
    9696 * chdev requests queue, and the calling thread is descheduled, blocked until
     
    106106
    107107/******************************************************************************************
    108  * This blocking function writes  characters on the terminal identified
     108 * This blocking function writes characters on the terminal identified
    109109 * by the "channel" argument. The corresponding request is actually registered in the
    110110 * chdev requests queue, and the calling thread is descheduled, blocked until
     
    121121                       uint32_t        count );
    122122
    123  /***************************************************************************************
    124  * This low-level blocking function is used by the kernel to display one string on a 
    125  * given TXT channel without descheduling the calling thread,  without registering it
    126  * in the TXT device waiting queue, and without using the TXT irq. 
     123/***************************************************************************************
     124 * This low-level blocking function is used by the kernel to display one string on a
     125 * given TXT channel without descheduling the calling thread, without registering it
     126 * in the TXT device waiting queue, and without using the TXT irq.
    127127 ****************************************************************************************
    128128 * @ channel   : TXT channel index.
     
    135135                            uint32_t   count );
    136136
    137 
    138137#endif  /* _DEV_TXT_H_ */
Note: See TracChangeset for help on using the changeset viewer.