.. | .. |
---|
28 | 28 | #define BROKEN_GRAPHICS_PROGRAMS 1 |
---|
29 | 29 | #endif |
---|
30 | 30 | |
---|
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 | + |
---|
33 | 34 | extern int fg_console, last_console, want_console; |
---|
34 | 35 | |
---|
35 | 36 | /* console.c */ |
---|
.. | .. |
---|
73 | 74 | void con_free_unimap(struct vc_data *vc); |
---|
74 | 75 | int con_copy_unimap(struct vc_data *dst_vc, struct vc_data *src_vc); |
---|
75 | 76 | |
---|
76 | | -#define vc_translate(vc, c) ((vc)->vc_translate[(c) | \ |
---|
77 | | - ((vc)->vc_toggle_meta ? 0x80 : 0)]) |
---|
78 | 77 | #else |
---|
79 | 78 | static inline int con_set_trans_old(unsigned char __user *table) |
---|
80 | 79 | { |
---|
.. | .. |
---|
123 | 122 | return 0; |
---|
124 | 123 | } |
---|
125 | 124 | |
---|
126 | | -#define vc_translate(vc, c) (c) |
---|
127 | 125 | #endif |
---|
128 | 126 | |
---|
129 | 127 | /* vt.c */ |
---|
.. | .. |
---|
131 | 129 | int vt_waitactive(int n); |
---|
132 | 130 | void change_console(struct vc_data *new_vc); |
---|
133 | 131 | 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); |
---|
136 | 134 | 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 | | -} |
---|
144 | 135 | |
---|
145 | 136 | extern bool vt_dont_switch; |
---|
146 | 137 | extern int default_utf8; |
---|
.. | .. |
---|
153 | 144 | }; |
---|
154 | 145 | extern struct vt_spawn_console vt_spawn_con; |
---|
155 | 146 | |
---|
156 | | -extern int vt_move_to_console(unsigned int vt, int alloc); |
---|
| 147 | +int vt_move_to_console(unsigned int vt, int alloc); |
---|
157 | 148 | |
---|
158 | 149 | /* Interfaces for VC notification of character events (for accessibility etc) */ |
---|
159 | 150 | |
---|
.. | .. |
---|
162 | 153 | unsigned int c; /* Printed char */ |
---|
163 | 154 | }; |
---|
164 | 155 | |
---|
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); |
---|
167 | 158 | |
---|
168 | | -extern void hide_boot_cursor(bool hide); |
---|
| 159 | +void hide_boot_cursor(bool hide); |
---|
169 | 160 | |
---|
170 | 161 | /* 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); |
---|
194 | 184 | |
---|
195 | 185 | void vc_scrolldelta_helper(struct vc_data *c, int lines, |
---|
196 | 186 | unsigned int rolled_over, void *_base, unsigned int size); |
---|