Subversion Repositories HelenOS-historic

Rev

Rev 1702 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1702 Rev 1780
Line 57... Line 57...
57
struct chardev {
57
struct chardev {
58
    char *name;
58
    char *name;
59
   
59
   
60
    waitq_t wq;
60
    waitq_t wq;
61
    SPINLOCK_DECLARE(lock);     /**< Protects everything below. */
61
    SPINLOCK_DECLARE(lock);     /**< Protects everything below. */
62
    __u8 buffer[CHARDEV_BUFLEN];
62
    uint8_t buffer[CHARDEV_BUFLEN];
63
    count_t counter;
63
    count_t counter;
64
    chardev_operations_t *op;   /**< Implementation of chardev operations. */
64
    chardev_operations_t *op;   /**< Implementation of chardev operations. */
65
    index_t index;
65
    index_t index;
66
    void *data;
66
    void *data;
67
};
67
};
68
 
68
 
69
extern void chardev_initialize(char *name,
69
extern void chardev_initialize(char *name,
70
                   chardev_t *chardev,
70
                   chardev_t *chardev,
71
                   chardev_operations_t *op);
71
                   chardev_operations_t *op);
72
extern void chardev_push_character(chardev_t *chardev, __u8 ch);
72
extern void chardev_push_character(chardev_t *chardev, uint8_t ch);
73
 
73
 
74
#endif /* __CHARDEV_H__ */
74
#endif /* __CHARDEV_H__ */
75
 
75
 
76
 /** @}
76
 /** @}
77
 */
77
 */