Changeset 46c20c8 in mainline for kernel/generic/include/console/chardev.h
- Timestamp:
- 2010-11-26T20:08:10Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45df59a
- Parents:
- fb150d78 (diff), ffdd2b9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
kernel/generic/include/console/chardev.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/console/chardev.h
rfb150d78 r46c20c8 37 37 38 38 #include <adt/list.h> 39 #include < arch/types.h>39 #include <typedefs.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 har *name;55 const char *name; 56 56 waitq_t wq; 57 57 58 58 /** Protects everything below. */ 59 SPINLOCK_DECLARE(lock);59 IRQ_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 har *name;83 const char *name; 84 84 85 85 /** Protects everything below. */ … … 95 95 } outdev_t; 96 96 97 extern void indev_initialize(c har *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);97 extern void indev_initialize(const 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 *); 101 101 102 extern void outdev_initialize(c har *name, outdev_t *outdev,103 outdev_operations_t * op);102 extern void outdev_initialize(const char *, outdev_t *, 103 outdev_operations_t *); 104 104 105 extern bool check_poll(indev_t * indev);105 extern bool check_poll(indev_t *); 106 106 107 107 #endif /* KERN_CHARDEV_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.
