Changeset 4 for trunk/kernel/drivers/soclib/soclib_tty.h
- Timestamp:
- Apr 26, 2017, 2:10:21 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/drivers/soclib/soclib_tty.h
r1 r4 23 23 24 24 #include <dev_txt.h> 25 #include < device.h>25 #include <chdev.h> 26 26 #include <spinlock.h> 27 27 … … 60 60 61 61 /**************************************************************************************** 62 * This function masks both the TTY_RX and TTY_TX IRQs from the SOCLIB_TTY device.62 * This function masks both the TTY_RX and TTY_TX IRQs. 63 63 * Thes IRQs are unmasked by the soclib_tty_cmd() function. 64 64 **************************************************************************************** 65 * @ dev : extended pointer on the generic TXT devicedescriptor.65 * @ chdev : pointer on the TXT chdev descriptor. 66 66 ***************************************************************************************/ 67 extern void soclib_tty_init( xptr_t dev_xp);67 void soclib_tty_init( chdev_t * chdev ); 68 68 69 69 /**************************************************************************************** … … 77 77 * a busy waiting policy if required. 78 78 **************************************************************************************** 79 * @ xp_thread: extended pointer on client thread descriptor.79 * @ thread_xp : extended pointer on client thread descriptor. 80 80 ***************************************************************************************/ 81 extern void soclib_tty_command( xptr_t thread_xp );81 void soclib_tty_cmd( xptr_t thread_xp ); 82 82 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 devicequeue:85 * It get the command arguments from the first client thread in the TXT chdev queue: 86 86 * - if TXT_READ, it transfer one byte from the TTY_READ_REG to the command buffer. 87 87 * It simply returns for retry if TTY_READ_REG is empty. … … 92 92 * the server thread, and unblock the client thread. 93 93 **************************************************************************************** 94 * @ dev : local pointer on generic TXT devicedescriptor.94 * @ chdev : local pointer on TXT chdev descriptor. 95 95 ***************************************************************************************/ 96 extern void soclib_tty_isr( device_t *dev );96 void soclib_tty_isr( chdev_t * chdev ); 97 97
Note: See TracChangeset
for help on using the changeset viewer.