Subversion Repositories HelenOS-historic

Rev

Rev 607 | Rev 669 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 607 Rev 623
Line 50... Line 50...
50
/** Character input device. */
50
/** Character input device. */
51
struct chardev {
51
struct chardev {
52
    char *name;
52
    char *name;
53
   
53
   
54
    waitq_t wq;
54
    waitq_t wq;
55
    spinlock_t lock;        /**< Protects everything below. */
55
    SPINLOCK_DECLARE(lock);     /**< Protects everything below. */
56
    __u8 buffer[CHARDEV_BUFLEN];
56
    __u8 buffer[CHARDEV_BUFLEN];
57
    count_t counter;
57
    count_t counter;
58
    chardev_operations_t *op;   /**< Implementation of chardev operations. */
58
    chardev_operations_t *op;   /**< Implementation of chardev operations. */
59
    index_t index;
59
    index_t index;
60
    void *data;
60
    void *data;