Subversion Repositories HelenOS-historic

Rev

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

Rev 575 Rev 586
Line 34... Line 34...
34
#include <synch/waitq.h>
34
#include <synch/waitq.h>
35
#include <synch/spinlock.h>
35
#include <synch/spinlock.h>
36
 
36
 
37
#define CHARDEV_BUFLEN 512
37
#define CHARDEV_BUFLEN 512
38
 
38
 
39
struct chardev;
-
 
40
 
-
 
41
/* Character device operations interface. */
39
/* Character device operations interface. */
42
struct chardev_operations {
40
struct chardev_operations {
43
    void (* suspend)(struct chardev *);/**< Suspend pushing characters. */
41
    void (* suspend)(chardev_t *);      /**< Suspend pushing characters. */
44
    void (* resume)(struct chardev *); /**< Resume pushing characters. */
42
    void (* resume)(chardev_t *);       /**< Resume pushing characters. */
45
    /** Write character to stream */
-
 
46
    void (* write)(struct chardev *, char c);
43
    void (* write)(chardev_t *, char c);    /**< Write character to stream. */
47
};
44
};
48
 
45
 
49
typedef struct chardev_operations chardev_operations_t;
46
typedef struct chardev_operations chardev_operations_t;
50
 
47
 
51
/** Character input device. */
48
/** Character input device. */