uapi: Port all remaining bits

This commit is contained in:
2026-10-26 20:59:27 +01:00
parent bfb8defeba
commit bc08afe811
10 changed files with 950 additions and 41 deletions
+4 -32
View File
@@ -11,41 +11,13 @@
#define __IO(group, num) __IOC(__IOC_VOID, (group), (num), 0)
#define __IOR(group, num, type) __IOC(__IOC_OUT, (group), (num), sizeof(type))
#define __IOW(group, num, type) __IOC(__IOC_IN, (group), (num), sizeof(type))
#define __IOWR(group, num, type) __IOC(__IOC_INOUT, (group), (num), sizeof(type))
#define __IOWINT(group, num) __IOC(__IOC_VOID, (group), (num), sizeof(int))
#define __IOC_GROUP(req) (((req) >> 8) & 0xFF)
#define __IOC_NUM(req) ((req) & 0xFF)
#define __IOC_LEN(req) (((req) >> 16) & 0x3FFF)
#define __TCGETS 0x5401
#define __TCSETS 0x5402
#define __TCSETSW 0x5403
#define __TCSETSF 0x5404
#define __TCFLSH 0x540B
#define __TIOCSCTTY 0x540E
#define __TIOCGPGRP 0x540F
#define __TIOCSPGRP 0x5410
#define __TIOCGWINSZ 0x5413
#define __TIOCSWINSZ 0x5414
#define __FIONREAD 0x541B
#define __TIOCCONS 0x541D
#define __TIOCPKT 0x5420
#define __FIONBIO 0x5421
#define __TIOCNOTTY 0x5422
#define __TIOCGSID 0x5429
#define __TIOCSIG 0x5436
#define __TIOCGPKT 0x5438
#define __TIOCGNAME 0x5470
#define __TIOCGPTN __IOR('T', 0x30, int)
#define __TIOCSPTLCK __IOW('T', 0x31, int)
#define __TIOCGPTLCK 3
#define __BLKGETSIZE64 __IOR('B', 0x00, unsigned long long)
#define __BLKSSZGET __IOR('B', 0x01, unsigned int)
#define __BLKRRPART __IO('B', 0x02)
#define __TIOCPKT_DATA 0
#define __TIOCPKT_FLUSHREAD 1
#define __TIOCPKT_FLUSHWRITE 2
#define __TIOCPKT_STOP 4
#define __TIOCPKT_START 8
#define __FIONREAD __IO('T', 0x1B)
#define __FIONBIO __IO('T', 0x21)
#endif