Changes in kernel/generic/include/console/chardev.h [9d58539:7ddc2c7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/console/chardev.h
r9d58539 r7ddc2c7 43 43 #define INDEV_BUFLEN 512 44 44 45 /** Input character device out-of-band signal type. */ 46 typedef enum { 47 INDEV_SIGNAL_SCROLL_UP = 0, 48 INDEV_SIGNAL_SCROLL_DOWN 49 } indev_signal_t; 50 45 51 struct indev; 46 52 47 /* Input character device operations interface. */53 /** Input character device operations interface. */ 48 54 typedef struct { 49 55 /** Read character directly from device, assume interrupts disabled. */ 50 56 wchar_t (* poll)(struct indev *); 57 58 /** Signal out-of-band condition. */ 59 void (* signal)(struct indev *, indev_signal_t); 51 60 } indev_operations_t; 52 61 … … 67 76 } indev_t; 68 77 69 70 78 struct outdev; 71 79 72 /* Output character device operations interface. */80 /** Output character device operations interface. */ 73 81 typedef struct { 74 82 /** Write character to output. */ … … 77 85 /** Redraw any previously cached characters. */ 78 86 void (* redraw)(struct outdev *); 87 88 /** Scroll up in the device cache. */ 89 void (* scroll_up)(struct outdev *); 90 91 /** Scroll down in the device cache. */ 92 void (* scroll_down)(struct outdev *); 79 93 } outdev_operations_t; 80 94 … … 99 113 extern void indev_push_character(indev_t *, wchar_t); 100 114 extern wchar_t indev_pop_character(indev_t *); 115 extern void indev_signal(indev_t *, indev_signal_t); 101 116 102 117 extern void outdev_initialize(const char *, outdev_t *,
Note:
See TracChangeset
for help on using the changeset viewer.