hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/include/linux/vt_kern.h
....@@ -28,8 +28,9 @@
2828 #define BROKEN_GRAPHICS_PROGRAMS 1
2929 #endif
3030
31
-extern void kd_mksound(unsigned int hz, unsigned int ticks);
32
-extern int kbd_rate(struct kbd_repeat *rep);
31
+void kd_mksound(unsigned int hz, unsigned int ticks);
32
+int kbd_rate(struct kbd_repeat *rep);
33
+
3334 extern int fg_console, last_console, want_console;
3435
3536 /* console.c */
....@@ -73,8 +74,6 @@
7374 void con_free_unimap(struct vc_data *vc);
7475 int con_copy_unimap(struct vc_data *dst_vc, struct vc_data *src_vc);
7576
76
-#define vc_translate(vc, c) ((vc)->vc_translate[(c) | \
77
- ((vc)->vc_toggle_meta ? 0x80 : 0)])
7877 #else
7978 static inline int con_set_trans_old(unsigned char __user *table)
8079 {
....@@ -123,7 +122,6 @@
123122 return 0;
124123 }
125124
126
-#define vc_translate(vc, c) (c)
127125 #endif
128126
129127 /* vt.c */
....@@ -131,16 +129,9 @@
131129 int vt_waitactive(int n);
132130 void change_console(struct vc_data *new_vc);
133131 void reset_vc(struct vc_data *vc);
134
-extern int do_unbind_con_driver(const struct consw *csw, int first, int last,
135
- int deflt);
132
+int do_unbind_con_driver(const struct consw *csw, int first, int last,
133
+ int deflt);
136134 int vty_init(const struct file_operations *console_fops);
137
-
138
-static inline bool vt_force_oops_output(struct vc_data *vc)
139
-{
140
- if (oops_in_progress && vc->vc_panic_force_write && panic_timeout >= 0)
141
- return true;
142
- return false;
143
-}
144135
145136 extern bool vt_dont_switch;
146137 extern int default_utf8;
....@@ -153,7 +144,7 @@
153144 };
154145 extern struct vt_spawn_console vt_spawn_con;
155146
156
-extern int vt_move_to_console(unsigned int vt, int alloc);
147
+int vt_move_to_console(unsigned int vt, int alloc);
157148
158149 /* Interfaces for VC notification of character events (for accessibility etc) */
159150
....@@ -162,35 +153,34 @@
162153 unsigned int c; /* Printed char */
163154 };
164155
165
-extern int register_vt_notifier(struct notifier_block *nb);
166
-extern int unregister_vt_notifier(struct notifier_block *nb);
156
+int register_vt_notifier(struct notifier_block *nb);
157
+int unregister_vt_notifier(struct notifier_block *nb);
167158
168
-extern void hide_boot_cursor(bool hide);
159
+void hide_boot_cursor(bool hide);
169160
170161 /* keyboard provided interfaces */
171
-extern int vt_do_diacrit(unsigned int cmd, void __user *up, int eperm);
172
-extern int vt_do_kdskbmode(int console, unsigned int arg);
173
-extern int vt_do_kdskbmeta(int console, unsigned int arg);
174
-extern int vt_do_kbkeycode_ioctl(int cmd, struct kbkeycode __user *user_kbkc,
175
- int perm);
176
-extern int vt_do_kdsk_ioctl(int cmd, struct kbentry __user *user_kbe,
177
- int perm, int console);
178
-extern int vt_do_kdgkb_ioctl(int cmd, struct kbsentry __user *user_kdgkb,
179
- int perm);
180
-extern int vt_do_kdskled(int console, int cmd, unsigned long arg, int perm);
181
-extern int vt_do_kdgkbmode(int console);
182
-extern int vt_do_kdgkbmeta(int console);
183
-extern void vt_reset_unicode(int console);
184
-extern int vt_get_shift_state(void);
185
-extern void vt_reset_keyboard(int console);
186
-extern int vt_get_leds(int console, int flag);
187
-extern int vt_get_kbd_mode_bit(int console, int bit);
188
-extern void vt_set_kbd_mode_bit(int console, int bit);
189
-extern void vt_clr_kbd_mode_bit(int console, int bit);
190
-extern void vt_set_led_state(int console, int leds);
191
-extern void vt_set_led_state(int console, int leds);
192
-extern void vt_kbd_con_start(int console);
193
-extern void vt_kbd_con_stop(int console);
162
+int vt_do_diacrit(unsigned int cmd, void __user *up, int eperm);
163
+int vt_do_kdskbmode(int console, unsigned int arg);
164
+int vt_do_kdskbmeta(int console, unsigned int arg);
165
+int vt_do_kbkeycode_ioctl(int cmd, struct kbkeycode __user *user_kbkc,
166
+ int perm);
167
+int vt_do_kdsk_ioctl(int cmd, struct kbentry __user *user_kbe, int perm,
168
+ int console);
169
+int vt_do_kdgkb_ioctl(int cmd, struct kbsentry __user *user_kdgkb, int perm);
170
+int vt_do_kdskled(int console, int cmd, unsigned long arg, int perm);
171
+int vt_do_kdgkbmode(int console);
172
+int vt_do_kdgkbmeta(int console);
173
+void vt_reset_unicode(int console);
174
+int vt_get_shift_state(void);
175
+void vt_reset_keyboard(int console);
176
+int vt_get_leds(int console, int flag);
177
+int vt_get_kbd_mode_bit(int console, int bit);
178
+void vt_set_kbd_mode_bit(int console, int bit);
179
+void vt_clr_kbd_mode_bit(int console, int bit);
180
+void vt_set_led_state(int console, int leds);
181
+void vt_set_led_state(int console, int leds);
182
+void vt_kbd_con_start(int console);
183
+void vt_kbd_con_stop(int console);
194184
195185 void vc_scrolldelta_helper(struct vc_data *c, int lines,
196186 unsigned int rolled_over, void *_base, unsigned int size);