Dr Andrew Scott G7VAV

My photo
 
June 2025
Mo Tu We Th Fr Sa Su
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 1 2 3 4 5 6


ioctls.h
001: #ifndef __ASM_GENERIC_IOCTLS_H
002: #define __ASM_GENERIC_IOCTLS_H
003: 
004: #include <linux/ioctl.h>
005: 
006: /*
007:  * These are the most common definitions for tty ioctl numbers.
008:  * Most of them do not use the recommended _IOC(), but there is
009:  * probably some source code out there hardcoding the number,
010:  * so we might as well use them for all new platforms.
011:  *
012:  * The architectures that use different values here typically
013:  * try to be compatible with some Unix variants for the same
014:  * architecture.
015:  */
016: 
017: /* 0x54 is just a magic number to make these relatively unique ('T') */
018: 
019: #define TCGETS          0x5401
020: #define TCSETS          0x5402
021: #define TCSETSW         0x5403
022: #define TCSETSF         0x5404
023: #define TCGETA          0x5405
024: #define TCSETA          0x5406
025: #define TCSETAW         0x5407
026: #define TCSETAF         0x5408
027: #define TCSBRK          0x5409
028: #define TCXONC          0x540A
029: #define TCFLSH          0x540B
030: #define TIOCEXCL        0x540C
031: #define TIOCNXCL        0x540D
032: #define TIOCSCTTY       0x540E
033: #define TIOCGPGRP       0x540F
034: #define TIOCSPGRP       0x5410
035: #define TIOCOUTQ        0x5411
036: #define TIOCSTI         0x5412
037: #define TIOCGWINSZ      0x5413
038: #define TIOCSWINSZ      0x5414
039: #define TIOCMGET        0x5415
040: #define TIOCMBIS        0x5416
041: #define TIOCMBIC        0x5417
042: #define TIOCMSET        0x5418
043: #define TIOCGSOFTCAR    0x5419
044: #define TIOCSSOFTCAR    0x541A
045: #define FIONREAD        0x541B
046: #define TIOCINQ         FIONREAD
047: #define TIOCLINUX       0x541C
048: #define TIOCCONS        0x541D
049: #define TIOCGSERIAL     0x541E
050: #define TIOCSSERIAL     0x541F
051: #define TIOCPKT         0x5420
052: #define FIONBIO         0x5421
053: #define TIOCNOTTY       0x5422
054: #define TIOCSETD        0x5423
055: #define TIOCGETD        0x5424
056: #define TCSBRKP         0x5425  /* Needed for POSIX tcsendbreak() */
057: #define TIOCSBRK        0x5427  /* BSD compatibility */
058: #define TIOCCBRK        0x5428  /* BSD compatibility */
059: #define TIOCGSID        0x5429  /* Return the session ID of FD */
060: #define TCGETS2         _IOR('T', 0x2A, struct termios2)
061: #define TCSETS2         _IOW('T', 0x2B, struct termios2)
062: #define TCSETSW2        _IOW('T', 0x2C, struct termios2)
063: #define TCSETSF2        _IOW('T', 0x2D, struct termios2)
064: #define TIOCGRS485      0x542E
065: #ifndef TIOCSRS485
066: #define TIOCSRS485      0x542F
067: #endif
068: #define TIOCGPTN        _IOR('T', 0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
069: #define TIOCSPTLCK      _IOW('T', 0x31, int)  /* Lock/unlock Pty */
070: #define TIOCGDEV        _IOR('T', 0x32, unsigned int) /* Get primary device node of /dev/console */
071: #define TCGETX          0x5432 /* SYS5 TCGETX compatibility */
072: #define TCSETX          0x5433
073: #define TCSETXF         0x5434
074: #define TCSETXW         0x5435
075: #define TIOCSIG         _IOW('T', 0x36, int)  /* pty: generate signal */
076: #define TIOCVHANGUP     0x5437
077: 
078: #define FIONCLEX        0x5450
079: #define FIOCLEX         0x5451
080: #define FIOASYNC        0x5452
081: #define TIOCSERCONFIG   0x5453
082: #define TIOCSERGWILD    0x5454
083: #define TIOCSERSWILD    0x5455
084: #define TIOCGLCKTRMIOS  0x5456
085: #define TIOCSLCKTRMIOS  0x5457
086: #define TIOCSERGSTRUCT  0x5458 /* For debugging only */
087: #define TIOCSERGETLSR   0x5459 /* Get line status register */
088: #define TIOCSERGETMULTI 0x545A /* Get multiport config  */
089: #define TIOCSERSETMULTI 0x545B /* Set multiport config */
090: 
091: #define TIOCMIWAIT      0x545C  /* wait for a change on serial input line(s) */
092: #define TIOCGICOUNT     0x545D  /* read serial port __inline__ interrupt counts */
093: 
094: /*
095:  * Some arches already define FIOQSIZE due to a historical
096:  * conflict with a Hayes modem-specific ioctl value.
097:  */
098: #ifndef FIOQSIZE
099: # define FIOQSIZE       0x5460
100: #endif
101: 
102: /* Used for packet mode */
103: #define TIOCPKT_DATA             0
104: #define TIOCPKT_FLUSHREAD        1
105: #define TIOCPKT_FLUSHWRITE       2
106: #define TIOCPKT_STOP             4
107: #define TIOCPKT_START            8
108: #define TIOCPKT_NOSTOP          16
109: #define TIOCPKT_DOSTOP          32
110: #define TIOCPKT_IOCTL           64
111: 
112: #define TIOCSER_TEMT    0x01    /* Transmitter physically empty */
113: 
114: #endif /* __ASM_GENERIC_IOCTLS_H */
115: 


for client (none)
© Andrew Scott 2006 - 2025,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/