Add termios2 support to hppa target
PATCH 3/7 Add termios2 support to hppa target
From 4e1fce768c62d36f32eb25e3c086f1c043a4e985 Mon Sep 17 00:00:00 2001
From: Luca Bonissi <[email protected]>
Date: Sat, 30 Aug 2025 14:51:58 +0200
Subject: [PATCH 3/7] Add termios2 support to hppa target
Signed-off-by Luca Bonissi <[email protected]>
--- linux-user/hppa/termbits.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+)
linux-user/hppa/termbits.h +29 -0
@@ -18,6 +18,29 @@ struct target_termios {target_cc_t c_cc[TARGET_NCCS ];/* control characters */ }; +struct target_termios2 { +target_tcflag_t c_iflag;/* input mode flags */ +target_tcflag_t c_oflag;/* output mode flags */ +target_tcflag_t c_cflag;/* control mode flags */ +target_tcflag_t c_lflag;/* local mode flags */ +target_cc_t c_line;/* line discipline */ +target_cc_t c_cc[TARGET_NCCS ];/* control characters */ +target_speed_t c_ispeed;/* input speed */ +target_speed_t c_ospeed;/* output speed */ +}; + +struct target_ktermios { +target_tcflag_t c_iflag;/* input mode flags */ +target_tcflag_t c_oflag;/* output mode flags */ +target_tcflag_t c_cflag;/* control mode flags */ +target_tcflag_t c_lflag;/* local mode flags */ +target_cc_t c_line;/* line discipline */ +target_cc_t c_cc[TARGET_NCCS ];/* control characters */ +target_speed_t c_ispeed;/* input speed */ +target_speed_t c_ospeed;/* output speed */ +}; + +/* c_iflag bits */ #define TARGET_IGNBRK 0000001#define TARGET_BRKINT 0000002
@@ -190,6 +213,12 @@ struct target_termios {#define TARGET_TIOCSBRK 0x5427/* BSD compatibility */ #define TARGET_TIOCCBRK 0x5428/* BSD compatibility */ #define TARGET_TIOCGSID TARGET_IOR('T', 20, int) +#define TARGET_TCGETS2 TARGET_IOR('T', 0x2A, struct target_termios2) +#define TARGET_TCSETS2 TARGET_IOW('T', 0x2B, struct target_termios2) +#define TARGET_TCSETSW2 TARGET_IOW('T', 0x2C, struct target_termios2) +#define TARGET_TCSETSF2 TARGET_IOW('T', 0x2D, struct target_termios2) +#define TARGET_TIOCGRS485 TARGET_IOR('T', 0x2E, struct serial_rs485) +#define TARGET_TIOCSRS485 TARGET_IOWR('T', 0x2F, struct serial_rs485)#define TARGET_TIOCGPTN TARGET_IOR('T', 0x30, unsigned int)/* Get Pty Number (of pty-mux device) */ #define TARGET_TIOCSPTLCK TARGET_IOW('T', 0x31, int)
Signature · 1 line
2.50.1