diff options
Diffstat (limited to 'drivers/char/hvc_console.h')
-rw-r--r-- | drivers/char/hvc_console.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/char/hvc_console.h b/drivers/char/hvc_console.h index 9790201718a..8297dbc2e6e 100644 --- a/drivers/char/hvc_console.h +++ b/drivers/char/hvc_console.h | |||
@@ -27,6 +27,7 @@ | |||
27 | #ifndef HVC_CONSOLE_H | 27 | #ifndef HVC_CONSOLE_H |
28 | #define HVC_CONSOLE_H | 28 | #define HVC_CONSOLE_H |
29 | #include <linux/kref.h> | 29 | #include <linux/kref.h> |
30 | #include <linux/tty.h> | ||
30 | 31 | ||
31 | /* | 32 | /* |
32 | * This is the max number of console adapters that can/will be found as | 33 | * This is the max number of console adapters that can/will be found as |
@@ -56,6 +57,8 @@ struct hvc_struct { | |||
56 | struct hv_ops *ops; | 57 | struct hv_ops *ops; |
57 | int irq_requested; | 58 | int irq_requested; |
58 | int data; | 59 | int data; |
60 | struct winsize ws; | ||
61 | struct work_struct tty_resize; | ||
59 | struct list_head next; | 62 | struct list_head next; |
60 | struct kref kref; /* ref count & hvc_struct lifetime */ | 63 | struct kref kref; /* ref count & hvc_struct lifetime */ |
61 | }; | 64 | }; |
@@ -65,9 +68,10 @@ struct hv_ops { | |||
65 | int (*get_chars)(uint32_t vtermno, char *buf, int count); | 68 | int (*get_chars)(uint32_t vtermno, char *buf, int count); |
66 | int (*put_chars)(uint32_t vtermno, const char *buf, int count); | 69 | int (*put_chars)(uint32_t vtermno, const char *buf, int count); |
67 | 70 | ||
68 | /* Callbacks for notification. Called in open and close */ | 71 | /* Callbacks for notification. Called in open, close and hangup */ |
69 | int (*notifier_add)(struct hvc_struct *hp, int irq); | 72 | int (*notifier_add)(struct hvc_struct *hp, int irq); |
70 | void (*notifier_del)(struct hvc_struct *hp, int irq); | 73 | void (*notifier_del)(struct hvc_struct *hp, int irq); |
74 | void (*notifier_hangup)(struct hvc_struct *hp, int irq); | ||
71 | }; | 75 | }; |
72 | 76 | ||
73 | /* Register a vterm and a slot index for use as a console (console_init) */ | 77 | /* Register a vterm and a slot index for use as a console (console_init) */ |
@@ -77,15 +81,19 @@ extern int hvc_instantiate(uint32_t vtermno, int index, struct hv_ops *ops); | |||
77 | extern struct hvc_struct * __devinit hvc_alloc(uint32_t vtermno, int data, | 81 | extern struct hvc_struct * __devinit hvc_alloc(uint32_t vtermno, int data, |
78 | struct hv_ops *ops, int outbuf_size); | 82 | struct hv_ops *ops, int outbuf_size); |
79 | /* remove a vterm from hvc tty operation (module_exit or hotplug remove) */ | 83 | /* remove a vterm from hvc tty operation (module_exit or hotplug remove) */ |
80 | extern int __devexit hvc_remove(struct hvc_struct *hp); | 84 | extern int hvc_remove(struct hvc_struct *hp); |
81 | 85 | ||
82 | /* data available */ | 86 | /* data available */ |
83 | int hvc_poll(struct hvc_struct *hp); | 87 | int hvc_poll(struct hvc_struct *hp); |
84 | void hvc_kick(void); | 88 | void hvc_kick(void); |
85 | 89 | ||
90 | /* Resize hvc tty terminal window */ | ||
91 | extern void hvc_resize(struct hvc_struct *hp, struct winsize ws); | ||
92 | |||
86 | /* default notifier for irq based notification */ | 93 | /* default notifier for irq based notification */ |
87 | extern int notifier_add_irq(struct hvc_struct *hp, int data); | 94 | extern int notifier_add_irq(struct hvc_struct *hp, int data); |
88 | extern void notifier_del_irq(struct hvc_struct *hp, int data); | 95 | extern void notifier_del_irq(struct hvc_struct *hp, int data); |
96 | extern void notifier_hangup_irq(struct hvc_struct *hp, int data); | ||
89 | 97 | ||
90 | 98 | ||
91 | #if defined(CONFIG_XMON) && defined(CONFIG_SMP) | 99 | #if defined(CONFIG_XMON) && defined(CONFIG_SMP) |