Changeset a35b458 in mainline for kernel/generic/include/console/chardev.h
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/console/chardev.h
r3061bc1 ra35b458 56 56 /** Read character directly from device, assume interrupts disabled. */ 57 57 wchar_t (* poll)(struct indev *); 58 58 59 59 /** Signal out-of-band condition. */ 60 60 void (* signal)(struct indev *, indev_signal_t); … … 65 65 const char *name; 66 66 waitq_t wq; 67 67 68 68 /** Protects everything below. */ 69 69 IRQ_SPINLOCK_DECLARE(lock); 70 70 wchar_t buffer[INDEV_BUFLEN]; 71 71 size_t counter; 72 72 73 73 /** Implementation of indev operations. */ 74 74 indev_operations_t *op; … … 83 83 /** Write character to output. */ 84 84 void (* write)(struct outdev *, wchar_t); 85 85 86 86 /** Redraw any previously cached characters. */ 87 87 void (* redraw)(struct outdev *); 88 88 89 89 /** Scroll up in the device cache. */ 90 90 void (* scroll_up)(struct outdev *); 91 91 92 92 /** Scroll down in the device cache. */ 93 93 void (* scroll_down)(struct outdev *); … … 97 97 typedef struct outdev { 98 98 const char *name; 99 99 100 100 /** Protects everything below. */ 101 101 SPINLOCK_DECLARE(lock); 102 102 103 103 /** Fields suitable for multiplexing. */ 104 104 link_t link; 105 105 list_t list; 106 106 107 107 /** Implementation of outdev operations. */ 108 108 outdev_operations_t *op;
Note:
See TracChangeset
for help on using the changeset viewer.