Changeset 607c5f9 in mainline for generic/include/console/chardev.h
- Timestamp:
- 2005-11-23T00:16:03Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a83a802
- Parents:
- 2677758
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/console/chardev.h
r2677758 r607c5f9 35 35 #include <synch/spinlock.h> 36 36 37 #define CHARDEV_BUFLEN 1037 #define CHARDEV_BUFLEN 512 38 38 39 typedef void (* ready_func_t)(void); 39 /* Character device operations interface. */ 40 struct chardev_operations { 41 void (* suspend)(void); /**< Suspend pushing characters. */ 42 void (* resume)(void); /**< Resume pushing characters. */ 43 }; 44 45 typedef struct chardev_operations chardev_operations_t; 40 46 41 47 /** Character input device. */ … … 46 52 count_t counter; 47 53 index_t index; 48 ready_func_t ready_func; /**< Function to re-enable input from the device. */54 chardev_operations_t *op; /**< Implementation of chardev operations. */ 49 55 }; 50 56 51 extern void chardev_initialize(chardev_t *chardev, ready_func_t r); 57 extern void chardev_initialize(chardev_t *chardev, chardev_operations_t *op); 58 void chardev_push_character(chardev_t *chardev, __u8 ch); 52 59 53 60 #endif /* __CHARDEV_H__ */
Note:
See TracChangeset
for help on using the changeset viewer.