File Index
Files and directories
Sign in
FILE

ioctls.h

File preview with syntax highlighting.

linux-6.19.14/arch/alpha/include/uapi/asm/ioctls.h C
  1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2#ifndef _ASM_ALPHA_IOCTLS_H
  3#define _ASM_ALPHA_IOCTLS_H
  4
  5#include <asm/ioctl.h>
  6
  7#define FIOCLEX		_IO('f', 1)
  8#define FIONCLEX	_IO('f', 2)
  9#define FIOASYNC	_IOW('f', 125, int)
 10#define FIONBIO		_IOW('f', 126, int)
 11#define FIONREAD	_IOR('f', 127, int)
 12#define TIOCINQ		FIONREAD
 13#define FIOQSIZE	_IOR('f', 128, loff_t)
 14
 15#define TIOCGETP	_IOR('t', 8, struct sgttyb)
 16#define TIOCSETP	_IOW('t', 9, struct sgttyb)
 17#define TIOCSETN	_IOW('t', 10, struct sgttyb)	/* TIOCSETP wo flush */
 18
 19#define TIOCSETC	_IOW('t', 17, struct tchars)
 20#define TIOCGETC	_IOR('t', 18, struct tchars)
 21#define TCGETS		_IOR('t', 19, struct termios)
 22#define TCSETS		_IOW('t', 20, struct termios)
 23#define TCSETSW		_IOW('t', 21, struct termios)
 24#define TCSETSF		_IOW('t', 22, struct termios)
 25
 26#define TCGETA          0x40127417
 27#define TCSETA          0x80127418
 28#define TCSETAW         0x80127419
 29#define TCSETAF         0x8012741c
 30
 31#define TCSBRK		_IO('t', 29)
 32#define TCXONC		_IO('t', 30)
 33#define TCFLSH		_IO('t', 31)
 34
 35#define TCGETS2		_IOR('T', 42, struct termios2)
 36#define TCSETS2		_IOW('T', 43, struct termios2)
 37#define TCSETSW2	_IOW('T', 44, struct termios2)
 38#define TCSETSF2	_IOW('T', 45, struct termios2)
 39
 40#define TIOCSWINSZ	_IOW('t', 103, struct winsize)
 41#define TIOCGWINSZ	_IOR('t', 104, struct winsize)
 42#define	TIOCSTART	_IO('t', 110)		/* start output, like ^Q */
 43#define	TIOCSTOP	_IO('t', 111)		/* stop output, like ^S */
 44#define TIOCOUTQ        _IOR('t', 115, int)     /* output queue size */
 45
 46#define TIOCGLTC	_IOR('t', 116, struct ltchars)
 47#define TIOCSLTC	_IOW('t', 117, struct ltchars)
 48#define TIOCSPGRP	_IOW('t', 118, int)
 49#define TIOCGPGRP	_IOR('t', 119, int)
 50
 51#define TIOCEXCL	0x540C
 52#define TIOCNXCL	0x540D
 53#define TIOCSCTTY	0x540E
 54
 55#define TIOCSTI		0x5412
 56#define TIOCMGET	0x5415
 57#define TIOCMBIS	0x5416
 58#define TIOCMBIC	0x5417
 59#define TIOCMSET	0x5418
 60# define TIOCM_LE	0x001
 61# define TIOCM_DTR	0x002
 62# define TIOCM_RTS	0x004
 63# define TIOCM_ST	0x008
 64# define TIOCM_SR	0x010
 65# define TIOCM_CTS	0x020
 66# define TIOCM_CAR	0x040
 67# define TIOCM_RNG	0x080
 68# define TIOCM_DSR	0x100
 69# define TIOCM_CD	TIOCM_CAR
 70# define TIOCM_RI	TIOCM_RNG
 71# define TIOCM_OUT1	0x2000
 72# define TIOCM_OUT2	0x4000
 73# define TIOCM_LOOP	0x8000
 74
 75#define TIOCGSOFTCAR	0x5419
 76#define TIOCSSOFTCAR	0x541A
 77#define TIOCLINUX	0x541C
 78#define TIOCCONS	0x541D
 79#define TIOCGSERIAL	0x541E
 80#define TIOCSSERIAL	0x541F
 81#define TIOCPKT		0x5420
 82# define TIOCPKT_DATA		 0
 83# define TIOCPKT_FLUSHREAD	 1
 84# define TIOCPKT_FLUSHWRITE	 2
 85# define TIOCPKT_STOP		 4
 86# define TIOCPKT_START		 8
 87# define TIOCPKT_NOSTOP		16
 88# define TIOCPKT_DOSTOP		32
 89# define TIOCPKT_IOCTL		64
 90
 91
 92#define TIOCNOTTY	0x5422
 93#define TIOCSETD	0x5423
 94#define TIOCGETD	0x5424
 95#define TCSBRKP		0x5425	/* Needed for POSIX tcsendbreak() */
 96#define TIOCSBRK	0x5427  /* BSD compatibility */
 97#define TIOCCBRK	0x5428  /* BSD compatibility */
 98#define TIOCGSID	0x5429  /* Return the session ID of FD */
 99#define TIOCGRS485	_IOR('T', 0x2E, struct serial_rs485)
100#define TIOCSRS485	_IOWR('T', 0x2F, struct serial_rs485)
101#define TIOCGPTN	_IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
102#define TIOCSPTLCK	_IOW('T',0x31, int)  /* Lock/unlock Pty */
103#define TIOCGDEV	_IOR('T',0x32, unsigned int) /* Get primary device node of /dev/console */
104#define TIOCSIG		_IOW('T',0x36, int)  /* Generate signal on Pty slave */
105#define TIOCVHANGUP	0x5437
106#define TIOCGPKT	_IOR('T', 0x38, int) /* Get packet mode state */
107#define TIOCGPTLCK	_IOR('T', 0x39, int) /* Get Pty lock state */
108#define TIOCGEXCL	_IOR('T', 0x40, int) /* Get exclusive mode state */
109#define TIOCGPTPEER	_IO('T', 0x41) /* Safely open the slave */
110#define TIOCGISO7816	_IOR('T', 0x42, struct serial_iso7816)
111#define TIOCSISO7816	_IOWR('T', 0x43, struct serial_iso7816)
112
113#define TIOCSERCONFIG	0x5453
114#define TIOCSERGWILD	0x5454
115#define TIOCSERSWILD	0x5455
116#define TIOCGLCKTRMIOS	0x5456
117#define TIOCSLCKTRMIOS	0x5457
118#define TIOCSERGSTRUCT	0x5458 /* For debugging only */
119#define TIOCSERGETLSR   0x5459 /* Get line status register */
120  /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
121# define TIOCSER_TEMT    0x01	/* Transmitter physically empty */
122#define TIOCSERGETMULTI 0x545A /* Get multiport config  */
123#define TIOCSERSETMULTI 0x545B /* Set multiport config */
124
125#define TIOCMIWAIT	0x545C	/* wait for a change on serial input line(s) */
126#define TIOCGICOUNT	0x545D	/* read serial port inline interrupt counts */
127
128#endif /* _ASM_ALPHA_IOCTLS_H */
~/ Read-only file preview.