blob: 1a53552f4981dd466a1b38d3b985d84675602e9c [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>
10
11extern unsigned int
12ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty);
13
14
15#define CTRLCHAR_NONE (1 << 8)
16#define CTRLCHAR_CTRL (2 << 8)
17#define CTRLCHAR_SYSRQ (3 << 8)
18
19#define CTRLCHAR_MASK (~0xffu)