Go to the documentation of this file. 1 #ifndef _LINUX_TTY_DRIVER_H
2 #define _LINUX_TTY_DRIVER_H
234 #include <linux/export.h>
235 #include <linux/fs.h>
236 #include <linux/list.h>
254 const unsigned char *
buf,
int count);
260 unsigned int cmd,
unsigned long arg);
262 unsigned int cmd,
unsigned long arg);
276 unsigned int set,
unsigned int clear);
281 #ifdef CONFIG_CONSOLE_POLL
335 #define tty_alloc_driver(lines, flags) \
336 __tty_alloc_driver(lines, THIS_MODULE, flags)
342 static inline struct tty_driver *alloc_tty_driver(
unsigned int lines)
357 #define TTY_DRIVER_MAGIC 0x5402
403 #define TTY_DRIVER_INSTALLED 0x0001
404 #define TTY_DRIVER_RESET_TERMIOS 0x0002
405 #define TTY_DRIVER_REAL_RAW 0x0004
406 #define TTY_DRIVER_DYNAMIC_DEV 0x0008
407 #define TTY_DRIVER_DEVPTS_MEM 0x0010
408 #define TTY_DRIVER_HARDWARE_BREAK 0x0020
409 #define TTY_DRIVER_DYNAMIC_ALLOC 0x0040
410 #define TTY_DRIVER_UNNUMBERED_NODE 0x0080
413 #define TTY_DRIVER_TYPE_SYSTEM 0x0001
414 #define TTY_DRIVER_TYPE_CONSOLE 0x0002
415 #define TTY_DRIVER_TYPE_SERIAL 0x0003
416 #define TTY_DRIVER_TYPE_PTY 0x0004
417 #define TTY_DRIVER_TYPE_SCC 0x0005
418 #define TTY_DRIVER_TYPE_SYSCONS 0x0006
421 #define SYSTEM_TYPE_TTY 0x0001
422 #define SYSTEM_TYPE_CONSOLE 0x0002
423 #define SYSTEM_TYPE_SYSCONS 0x0003
424 #define SYSTEM_TYPE_SYSPTMX 0x0004
427 #define PTY_TYPE_MASTER 0x0001
428 #define PTY_TYPE_SLAVE 0x0002
431 #define SERIAL_TYPE_NORMAL 1