Changeset 49 for trunk/kernel/devices/dev_txt.h
- Timestamp:
- Jun 26, 2017, 1:40:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_txt.h
r23 r49 1 1 /* 2 2 * dev_txt.h - TXT (Text Terminal) generic device API definition. 3 * 3 * 4 4 * Author Alain Greiner (2016) 5 5 * … … 35 35 * Generic Text Terminal device definition. 36 36 * 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. 38 38 * It supports three operation types : 39 39 * - TXT_READ : read a single character from the text terminal identified by its channel … … 42 42 * index, using a descheduling strategy for the calling thread. 43 43 * - 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. 45 45 *****************************************************************************************/ 46 46 … … 52 52 enum txt_impl_e 53 53 { 54 IMPL_TXT_TTY = 0, 55 IMPL_TXT_X86 = 1, 54 IMPL_TXT_TTY = 0, 55 IMPL_TXT_X86 = 1, 56 56 } 57 57 txt_impl_t; 58 58 59 59 /****************************************************************************************** 60 * This defines the (implementation independ ant) command passed to the driver.60 * This defines the (implementation independent) command passed to the driver. 61 61 *****************************************************************************************/ 62 62 … … 80 80 /****************************************************************************************** 81 81 * 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. 83 83 * The func, impl, channel, is_rxt, base fields have been previously initialised. 84 84 * It calls the specific driver initialisation function, to initialise the hardware … … 92 92 93 93 /****************************************************************************************** 94 * This blocking function read a single character from the terminal identified94 * This blocking function reads a single character from the terminal identified 95 95 * by the "channel" argument. The corresponding request is actually registered in the 96 96 * chdev requests queue, and the calling thread is descheduled, blocked until … … 106 106 107 107 /****************************************************************************************** 108 * This blocking function writes 108 * This blocking function writes characters on the terminal identified 109 109 * by the "channel" argument. The corresponding request is actually registered in the 110 110 * chdev requests queue, and the calling thread is descheduled, blocked until … … 121 121 uint32_t count ); 122 122 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 it126 * 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. 127 127 **************************************************************************************** 128 128 * @ channel : TXT channel index. … … 135 135 uint32_t count ); 136 136 137 138 137 #endif /* _DEV_TXT_H_ */
Note: See TracChangeset
for help on using the changeset viewer.