162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 262306a36Sopenharmony_ci#ifndef __ARCH_PARISC_IOCTLS_H__ 362306a36Sopenharmony_ci#define __ARCH_PARISC_IOCTLS_H__ 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#include <asm/ioctl.h> 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci/* 0x54 is just a magic number to make these relatively unique ('T') */ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#define TCGETS _IOR('T', 16, struct termios) /* TCGETATTR */ 1062306a36Sopenharmony_ci#define TCSETS _IOW('T', 17, struct termios) /* TCSETATTR */ 1162306a36Sopenharmony_ci#define TCSETSW _IOW('T', 18, struct termios) /* TCSETATTRD */ 1262306a36Sopenharmony_ci#define TCSETSF _IOW('T', 19, struct termios) /* TCSETATTRF */ 1362306a36Sopenharmony_ci#define TCGETA _IOR('T', 1, struct termio) 1462306a36Sopenharmony_ci#define TCSETA _IOW('T', 2, struct termio) 1562306a36Sopenharmony_ci#define TCSETAW _IOW('T', 3, struct termio) 1662306a36Sopenharmony_ci#define TCSETAF _IOW('T', 4, struct termio) 1762306a36Sopenharmony_ci#define TCSBRK _IO('T', 5) 1862306a36Sopenharmony_ci#define TCXONC _IO('T', 6) 1962306a36Sopenharmony_ci#define TCFLSH _IO('T', 7) 2062306a36Sopenharmony_ci#define TIOCEXCL 0x540C 2162306a36Sopenharmony_ci#define TIOCNXCL 0x540D 2262306a36Sopenharmony_ci#define TIOCSCTTY 0x540E 2362306a36Sopenharmony_ci#define TIOCGPGRP _IOR('T', 30, int) 2462306a36Sopenharmony_ci#define TIOCSPGRP _IOW('T', 29, int) 2562306a36Sopenharmony_ci#define TIOCOUTQ 0x5411 2662306a36Sopenharmony_ci#define TIOCSTI 0x5412 2762306a36Sopenharmony_ci#define TIOCGWINSZ 0x5413 2862306a36Sopenharmony_ci#define TIOCSWINSZ 0x5414 2962306a36Sopenharmony_ci#define TIOCMGET 0x5415 3062306a36Sopenharmony_ci#define TIOCMBIS 0x5416 3162306a36Sopenharmony_ci#define TIOCMBIC 0x5417 3262306a36Sopenharmony_ci#define TIOCMSET 0x5418 3362306a36Sopenharmony_ci#define TIOCGSOFTCAR 0x5419 3462306a36Sopenharmony_ci#define TIOCSSOFTCAR 0x541A 3562306a36Sopenharmony_ci#define FIONREAD 0x541B 3662306a36Sopenharmony_ci#define TIOCINQ FIONREAD 3762306a36Sopenharmony_ci#define TIOCLINUX 0x541C 3862306a36Sopenharmony_ci#define TIOCCONS 0x541D 3962306a36Sopenharmony_ci#define TIOCGSERIAL 0x541E 4062306a36Sopenharmony_ci#define TIOCSSERIAL 0x541F 4162306a36Sopenharmony_ci#define TIOCPKT 0x5420 4262306a36Sopenharmony_ci#define FIONBIO 0x5421 4362306a36Sopenharmony_ci#define TIOCNOTTY 0x5422 4462306a36Sopenharmony_ci#define TIOCSETD 0x5423 4562306a36Sopenharmony_ci#define TIOCGETD 0x5424 4662306a36Sopenharmony_ci#define TCSBRKP 0x5425 /* Needed for POSIX tcsendbreak() */ 4762306a36Sopenharmony_ci#define TIOCSBRK 0x5427 /* BSD compatibility */ 4862306a36Sopenharmony_ci#define TIOCCBRK 0x5428 /* BSD compatibility */ 4962306a36Sopenharmony_ci#define TIOCGSID _IOR('T', 20, int) /* Return the session ID of FD */ 5062306a36Sopenharmony_ci#define TCGETS2 _IOR('T',0x2A, struct termios2) 5162306a36Sopenharmony_ci#define TCSETS2 _IOW('T',0x2B, struct termios2) 5262306a36Sopenharmony_ci#define TCSETSW2 _IOW('T',0x2C, struct termios2) 5362306a36Sopenharmony_ci#define TCSETSF2 _IOW('T',0x2D, struct termios2) 5462306a36Sopenharmony_ci#define TIOCGRS485 _IOR('T', 0x2E, struct serial_rs485) 5562306a36Sopenharmony_ci#define TIOCSRS485 _IOWR('T', 0x2F, struct serial_rs485) 5662306a36Sopenharmony_ci#define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ 5762306a36Sopenharmony_ci#define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */ 5862306a36Sopenharmony_ci#define TIOCGDEV _IOR('T',0x32, int) /* Get primary device node of /dev/console */ 5962306a36Sopenharmony_ci#define TIOCSIG _IOW('T',0x36, int) /* Generate signal on Pty slave */ 6062306a36Sopenharmony_ci#define TIOCVHANGUP 0x5437 6162306a36Sopenharmony_ci#define TIOCGPKT _IOR('T', 0x38, int) /* Get packet mode state */ 6262306a36Sopenharmony_ci#define TIOCGPTLCK _IOR('T', 0x39, int) /* Get Pty lock state */ 6362306a36Sopenharmony_ci#define TIOCGEXCL _IOR('T', 0x40, int) /* Get exclusive mode state */ 6462306a36Sopenharmony_ci#define TIOCGPTPEER _IO('T', 0x41) /* Safely open the slave */ 6562306a36Sopenharmony_ci#define TIOCGISO7816 _IOR('T', 0x42, struct serial_iso7816) 6662306a36Sopenharmony_ci#define TIOCSISO7816 _IOWR('T', 0x43, struct serial_iso7816) 6762306a36Sopenharmony_ci 6862306a36Sopenharmony_ci#define FIONCLEX 0x5450 /* these numbers need to be adjusted. */ 6962306a36Sopenharmony_ci#define FIOCLEX 0x5451 7062306a36Sopenharmony_ci#define FIOASYNC 0x5452 7162306a36Sopenharmony_ci#define TIOCSERCONFIG 0x5453 7262306a36Sopenharmony_ci#define TIOCSERGWILD 0x5454 7362306a36Sopenharmony_ci#define TIOCSERSWILD 0x5455 7462306a36Sopenharmony_ci#define TIOCGLCKTRMIOS 0x5456 7562306a36Sopenharmony_ci#define TIOCSLCKTRMIOS 0x5457 7662306a36Sopenharmony_ci#define TIOCSERGSTRUCT 0x5458 /* For debugging only */ 7762306a36Sopenharmony_ci#define TIOCSERGETLSR 0x5459 /* Get line status register */ 7862306a36Sopenharmony_ci#define TIOCSERGETMULTI 0x545A /* Get multiport config */ 7962306a36Sopenharmony_ci#define TIOCSERSETMULTI 0x545B /* Set multiport config */ 8062306a36Sopenharmony_ci 8162306a36Sopenharmony_ci#define TIOCMIWAIT 0x545C /* wait for a change on serial input line(s) */ 8262306a36Sopenharmony_ci#define TIOCGICOUNT 0x545D /* read serial port inline interrupt counts */ 8362306a36Sopenharmony_ci#define FIOQSIZE 0x5460 /* Get exact space used by quota */ 8462306a36Sopenharmony_ci 8562306a36Sopenharmony_ci#define TIOCSTART 0x5461 8662306a36Sopenharmony_ci#define TIOCSTOP 0x5462 8762306a36Sopenharmony_ci#define TIOCSLTC 0x5462 8862306a36Sopenharmony_ci 8962306a36Sopenharmony_ci/* Used for packet mode */ 9062306a36Sopenharmony_ci#define TIOCPKT_DATA 0 9162306a36Sopenharmony_ci#define TIOCPKT_FLUSHREAD 1 9262306a36Sopenharmony_ci#define TIOCPKT_FLUSHWRITE 2 9362306a36Sopenharmony_ci#define TIOCPKT_STOP 4 9462306a36Sopenharmony_ci#define TIOCPKT_START 8 9562306a36Sopenharmony_ci#define TIOCPKT_NOSTOP 16 9662306a36Sopenharmony_ci#define TIOCPKT_DOSTOP 32 9762306a36Sopenharmony_ci#define TIOCPKT_IOCTL 64 9862306a36Sopenharmony_ci 9962306a36Sopenharmony_ci#define TIOCSER_TEMT 0x01 /* Transmitter physically empty */ 10062306a36Sopenharmony_ci 10162306a36Sopenharmony_ci#endif /* _ASM_PARISC_IOCTLS_H */ 102