Changes in kernel/generic/include/console/chardev.h [da1bafb:a71c158] in mainline
- File:
-
- 1 edited
-
kernel/generic/include/console/chardev.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/console/chardev.h
rda1bafb ra71c158 37 37 38 38 #include <adt/list.h> 39 #include < typedefs.h>39 #include <arch/types.h> 40 40 #include <synch/waitq.h> 41 41 #include <synch/spinlock.h> … … 53 53 /** Character input device. */ 54 54 typedef struct indev { 55 c onst char *name;55 char *name; 56 56 waitq_t wq; 57 57 58 58 /** Protects everything below. */ 59 IRQ_SPINLOCK_DECLARE(lock);59 SPINLOCK_DECLARE(lock); 60 60 wchar_t buffer[INDEV_BUFLEN]; 61 61 size_t counter; … … 81 81 /** Character output device. */ 82 82 typedef struct outdev { 83 c onst char *name;83 char *name; 84 84 85 85 /** Protects everything below. */ … … 95 95 } outdev_t; 96 96 97 extern void indev_initialize(c onst char *, indev_t *,98 indev_operations_t * );99 extern void indev_push_character(indev_t * , wchar_t);100 extern wchar_t indev_pop_character(indev_t * );97 extern void indev_initialize(char *name, indev_t *indev, 98 indev_operations_t *op); 99 extern void indev_push_character(indev_t *indev, wchar_t ch); 100 extern wchar_t indev_pop_character(indev_t *indev); 101 101 102 extern void outdev_initialize(c onst char *, outdev_t *,103 outdev_operations_t * );102 extern void outdev_initialize(char *name, outdev_t *outdev, 103 outdev_operations_t *op); 104 104 105 extern bool check_poll(indev_t * );105 extern bool check_poll(indev_t *indev); 106 106 107 107 #endif /* KERN_CHARDEV_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.
