/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1995, 1996, 2001 Ralf Baechle
* Copyright (C) 2001 MIPS Technologies, Inc.
*/
#ifndef __ASM_IOCTLS_H
#define __ASM_IOCTLS_H
#include <asm /ioctl.h>
#define TCGETA 0 x5401
#define TCSETA 0 x5402 /* Clashes with SNDCTL_TMR_START sound ioctl */
#define TCSETAW 0 x5403
#define TCSETAF 0 x5404
#define TCSBRK 0 x5405
#define TCXONC 0 x5406
#define TCFLSH 0 x5407
#define TCGETS 0 x540d
#define TCSETS 0 x540e
#define TCSETSW 0 x540f
#define TCSETSF 0 x5410
#define TIOCEXCL 0 x740d /* set exclusive use of tty */
#define TIOCNXCL 0 x740e /* reset exclusive use of tty */
#define TIOCOUTQ 0 x7472 /* output queue size */
#define TIOCSTI 0 x5472 /* simulate terminal input */
#define TIOCMGET 0 x741d /* get all modem bits */
#define TIOCMBIS 0 x741b /* bis modem bits */
#define TIOCMBIC 0 x741c /* bic modem bits */
#define TIOCMSET 0 x741a /* set all modem bits */
#define TIOCPKT 0 x5470 /* pty: set/clear packet mode */
#define TIOCPKT_DATA 0 x00 /* data packet */
#define TIOCPKT_FLUSHREAD 0 x01 /* flush packet */
#define TIOCPKT_FLUSHWRITE 0 x02 /* flush packet */
#define TIOCPKT_STOP 0 x04 /* stop output */
#define TIOCPKT_START 0 x08 /* start output */
#define TIOCPKT_NOSTOP 0 x10 /* no more ^S, ^Q */
#define TIOCPKT_DOSTOP 0 x20 /* now do ^S ^Q */
#define TIOCPKT_IOCTL 0 x40 /* state change of pty driver */
#define TIOCSWINSZ _IOW('t' , 103 , struct winsize) /* set window size */
#define TIOCGWINSZ _IOR('t' , 104 , struct winsize) /* get window size */
#define TIOCNOTTY 0 x5471 /* void tty association */
#define TIOCSETD 0 x7401
#define TIOCGETD 0 x7400
#define FIOCLEX 0 x6601
#define FIONCLEX 0 x6602
#define FIOASYNC 0 x667d
#define FIONBIO 0 x667e
#define FIOQSIZE 0 x667f
#define TIOCGLTC 0 x7474 /* get special local chars */
#define TIOCSLTC 0 x7475 /* set special local chars */
#define TIOCSPGRP _IOW('t' , 118 , int ) /* set pgrp of tty */
#define TIOCGPGRP _IOR('t' , 119 , int ) /* get pgrp of tty */
#define TIOCCONS _IOW('t' , 120 , int ) /* become virtual console */
#define FIONREAD 0 x467f
#define TIOCINQ FIONREAD
#define TIOCGETP 0 x7408
#define TIOCSETP 0 x7409
#define TIOCSETN 0 x740a /* TIOCSETP wo flush */
/* #define TIOCSETA _IOW('t', 20, struct termios) set termios struct */
/* #define TIOCSETAW _IOW('t', 21, struct termios) drain output, set */
/* #define TIOCSETAF _IOW('t', 22, struct termios) drn out, fls in, set */
/* #define TIOCGETD _IOR('t', 26, int) get line discipline */
/* #define TIOCSETD _IOW('t', 27, int) set line discipline */
/* 127-124 compat */
#define TIOCSBRK 0 x5427 /* BSD compatibility */
#define TIOCCBRK 0 x5428 /* BSD compatibility */
#define TIOCGSID 0 x7416 /* Return the session ID of FD */
#define TCGETS2 _IOR('T' , 0 x2A, struct termios2)
#define TCSETS2 _IOW('T' , 0 x2B, struct termios2)
#define TCSETSW2 _IOW('T' , 0 x2C, struct termios2)
#define TCSETSF2 _IOW('T' , 0 x2D, struct termios2)
#define TIOCGRS485 _IOR('T' , 0 x2E, struct serial_rs485)
#define TIOCSRS485 _IOWR('T' , 0 x2F, struct serial_rs485)
#define TIOCGPTN _IOR('T' , 0 x30, unsigned int ) /* Get Pty Number (of pty-mux device) */
#define TIOCSPTLCK _IOW('T' , 0 x31, int ) /* Lock/unlock Pty */
#define TIOCGDEV _IOR('T' , 0 x32, unsigned int ) /* Get primary device node of /dev/console */
#define TIOCSIG _IOW('T' , 0 x36, int ) /* Generate signal on Pty slave */
#define TIOCVHANGUP 0 x5437
#define TIOCGPKT _IOR('T' , 0 x38, int ) /* Get packet mode state */
#define TIOCGPTLCK _IOR('T' , 0 x39, int ) /* Get Pty lock state */
#define TIOCGEXCL _IOR('T' , 0 x40, int ) /* Get exclusive mode state */
#define TIOCGPTPEER _IO('T' , 0 x41) /* Safely open the slave */
#define TIOCGISO7816 _IOR('T' , 0 x42, struct serial_iso7816)
#define TIOCSISO7816 _IOWR('T' , 0 x43, struct serial_iso7816)
/* I hope the range from 0x5480 on is free ... */
#define TIOCSCTTY 0 x5480 /* become controlling tty */
#define TIOCGSOFTCAR 0 x5481
#define TIOCSSOFTCAR 0 x5482
#define TIOCLINUX 0 x5483
#define TIOCGSERIAL 0 x5484
#define TIOCSSERIAL 0 x5485
#define TCSBRKP 0 x5486 /* Needed for POSIX tcsendbreak() */
#define TIOCSERCONFIG 0 x5488
#define TIOCSERGWILD 0 x5489
#define TIOCSERSWILD 0 x548a
#define TIOCGLCKTRMIOS 0 x548b
#define TIOCSLCKTRMIOS 0 x548c
#define TIOCSERGSTRUCT 0 x548d /* For debugging only */
#define TIOCSERGETLSR 0 x548e /* Get line status register */
#define TIOCSERGETMULTI 0 x548f /* Get multiport config */
#define TIOCSERSETMULTI 0 x5490 /* Set multiport config */
#define TIOCMIWAIT 0 x5491 /* wait for a change on serial input line(s) */
#define TIOCGICOUNT 0 x5492 /* read serial port inline interrupt counts */
#endif /* __ASM_IOCTLS_H */
Messung V0.5 in Prozent C=92 H=86 G=88
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-07)
¤
*© Formatika GbR, Deutschland