Changeset d1dabe1f in mainline
- Timestamp:
- 2009-04-03T07:55:23Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 68ad9d2
- Parents:
- 043eca0
- Location:
- kernel/generic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/console/chardev.h
r043eca0 rd1dabe1f 47 47 typedef struct { 48 48 /** Read character directly from device, assume interrupts disabled. */ 49 char(* poll)(struct indev *);49 wchar_t (* poll)(struct indev *); 50 50 } indev_operations_t; 51 51 … … 57 57 /** Protects everything below. */ 58 58 SPINLOCK_DECLARE(lock); 59 uint8_t buffer[INDEV_BUFLEN];59 wchar_t buffer[INDEV_BUFLEN]; 60 60 count_t counter; 61 61 … … 72 72 typedef struct { 73 73 /** Write character to output. */ 74 void (* write)(struct outdev *, wchar_t c, bool silent);74 void (* write)(struct outdev *, wchar_t, bool); 75 75 } outdev_operations_t; 76 76 … … 89 89 extern void indev_initialize(char *name, indev_t *indev, 90 90 indev_operations_t *op); 91 extern void indev_push_character(indev_t *indev, uint8_t ch);91 extern void indev_push_character(indev_t *indev, wchar_t ch); 92 92 93 93 extern void outdev_initialize(char *name, outdev_t *outdev, -
kernel/generic/src/console/chardev.c
r043eca0 rd1dabe1f 60 60 * 61 61 */ 62 void indev_push_character(indev_t *indev, uint8_t ch)62 void indev_push_character(indev_t *indev, wchar_t ch) 63 63 { 64 64 ASSERT(indev);
Note:
See TracChangeset
for help on using the changeset viewer.