blob: 59c2d6e55e55386c71e86cca3a33f59103adfed8 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Linus Torvalds1da177e2005-04-16 15:20:36 -07002 * Unified handling of special chars.
3 *
Heiko Carstensa53c8fa2012-07-20 11:15:04 +02004 * Copyright IBM Corp. 2001
Linus Torvalds1da177e2005-04-16 15:20:36 -07005 * Author(s): Fritz Elfert <felfert@millenux.com> <elfert@de.ibm.com>
6 *
7 */
8
9#include <linux/tty.h>
Hendrik Bruecknerab7373b2015-08-18 17:42:39 +020010#include <linux/sysrq.h>
11#include <linux/workqueue.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070012
13extern unsigned int
14ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty);
15
16
17#define CTRLCHAR_NONE (1 << 8)
18#define CTRLCHAR_CTRL (2 << 8)
19#define CTRLCHAR_SYSRQ (3 << 8)
20
21#define CTRLCHAR_MASK (~0xffu)
Hendrik Bruecknerab7373b2015-08-18 17:42:39 +020022
23
24#ifdef CONFIG_MAGIC_SYSRQ
25struct sysrq_work {
26 int key;
27 struct work_struct work;
28};
29
30void schedule_sysrq_work(struct sysrq_work *sw);
31#endif