treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / s390 / char / ctrlchar.h
blobe52afa3b8180972a8bd447fcfda1237d5756a947
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Unified handling of special chars.
5 * Copyright IBM Corp. 2001
6 * Author(s): Fritz Elfert <felfert@millenux.com> <elfert@de.ibm.com>
8 */
10 #include <linux/tty.h>
11 #include <linux/sysrq.h>
12 #include <linux/workqueue.h>
14 extern unsigned int
15 ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty);
18 #define CTRLCHAR_NONE (1 << 8)
19 #define CTRLCHAR_CTRL (2 << 8)
20 #define CTRLCHAR_SYSRQ (3 << 8)
22 #define CTRLCHAR_MASK (~0xffu)
25 #ifdef CONFIG_MAGIC_SYSRQ
26 struct sysrq_work {
27 int key;
28 struct work_struct work;
31 void schedule_sysrq_work(struct sysrq_work *sw);
32 #endif