tty: remove tty event queues

This commit is contained in:
2023-06-11 19:00:55 +01:00
parent a7c28e983c
commit cdb9fef36c
4 changed files with 13 additions and 57 deletions

View File

@@ -10,7 +10,6 @@
#define TTY_DEVICE(dev) ((dev)->dev_type == DEV_TYPE_CHAR ? (dev)->chr.c_tty : NULL)
#define TTY_DRIVER(drv) ((struct tty_driver *)((char *)drv - offsetof(struct tty_driver, tty_base)))
#define TTY_EVENT_QUEUE_SIZE 4
#define TTY_INPUT_QUEUE_SIZE 256
struct kext;
@@ -93,7 +92,7 @@ struct tty_driver {
struct tty_ldisc {
char name[OBJECT_NAME_MAX];
void(*process_events)(struct device *);
void(*write)(struct device *, const struct input_event *);
};
struct tty_device {
@@ -106,8 +105,6 @@ struct tty_device {
struct tty_ldisc *tty_ldisc;
/* raw input events sent to the TTY */
struct ringbuffer tty_events;
/* input characters processed from tty_events, returned by tty_read() */
struct ringbuffer tty_input;
};