| .. | .. |
|---|
| 16 | 16 | |
|---|
| 17 | 17 | #include <linux/atomic.h> |
|---|
| 18 | 18 | #include <linux/types.h> |
|---|
| 19 | | -#include <linux/printk.h> |
|---|
| 20 | 19 | |
|---|
| 21 | 20 | struct vc_data; |
|---|
| 22 | 21 | struct console_font_op; |
|---|
| .. | .. |
|---|
| 138 | 137 | #define CON_ANYTIME (16) /* Safe to call when cpu is offline */ |
|---|
| 139 | 138 | #define CON_BRL (32) /* Used for a braille device */ |
|---|
| 140 | 139 | #define CON_EXTENDED (64) /* Use the extended output format a la /dev/kmsg */ |
|---|
| 141 | | -#define CON_HANDOVER (128) /* Device was previously a boot console. */ |
|---|
| 142 | 140 | |
|---|
| 143 | 141 | struct console { |
|---|
| 144 | 142 | char name[16]; |
|---|
| 145 | 143 | void (*write)(struct console *, const char *, unsigned); |
|---|
| 146 | | - void (*write_atomic)(struct console *co, const char *s, unsigned int count); |
|---|
| 147 | 144 | int (*read)(struct console *, char *, unsigned); |
|---|
| 148 | 145 | struct tty_driver *(*device)(struct console *, int *); |
|---|
| 149 | 146 | void (*unblank)(void); |
|---|
| .. | .. |
|---|
| 153 | 150 | short flags; |
|---|
| 154 | 151 | short index; |
|---|
| 155 | 152 | int cflag; |
|---|
| 156 | | -#ifdef CONFIG_PRINTK |
|---|
| 157 | | - char sync_buf[CONSOLE_LOG_MAX]; |
|---|
| 158 | | -#endif |
|---|
| 159 | | - atomic64_t printk_seq; |
|---|
| 160 | | - struct task_struct *thread; |
|---|
| 161 | 153 | void *data; |
|---|
| 162 | 154 | struct console *next; |
|---|
| 163 | 155 | }; |
|---|
| .. | .. |
|---|
| 237 | 229 | /* For deferred console takeover */ |
|---|
| 238 | 230 | void dummycon_register_output_notifier(struct notifier_block *nb); |
|---|
| 239 | 231 | void dummycon_unregister_output_notifier(struct notifier_block *nb); |
|---|
| 240 | | - |
|---|
| 241 | | -extern void console_atomic_lock(unsigned int *flags); |
|---|
| 242 | | -extern void console_atomic_unlock(unsigned int flags); |
|---|
| 243 | 232 | |
|---|
| 244 | 233 | #endif /* _LINUX_CONSOLE_H */ |
|---|