From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1CE60CA0EFF for ; Sat, 30 Aug 2025 16:52:46 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1usOKj-00049p-Cl; Sat, 30 Aug 2025 12:21:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1usLTe-00023X-VM for qemu-devel@nongnu.org; Sat, 30 Aug 2025 09:18:43 -0400 Received: from bonnix2.bonnix.it ([37.247.49.194]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1usLTd-0003DH-0z for qemu-devel@nongnu.org; Sat, 30 Aug 2025 09:18:42 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 bonnix2.bonnix.it 06E7D24342A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bonslack.org; s=20220805; t=1756559920; bh=gHtihYXxzp9Xo0Cnf+h/+ic6JyzdUyqKYhbDVzk4Ito=; h=Date:From:Subject:To:Cc; b=rePo0VIVrBea6ZPgR8FN+LZArCkYnuPi62Ko7RpdWKg8mNC9k0pAg6DsYWAxp8A+/ I9jWDOQRlWz8I7flkLdrrDk+kpOYINwAlsvdEsGzimlg4zC4j8iShwWPLvZ78LYqr2 5NcIQB2jzt/DC7bVH8OQB5km23d2KL2oZEbnJajw= Received: from [10.0.0.70] (ip190-129-198-217.pool-bba.aruba.it [217.198.129.190]) by bonnix2.bonnix.it (Postfix) with ESMTPSA id 06E7D24342A; Sat, 30 Aug 2025 15:18:40 +0200 (CEST) Message-ID: <2fb95d50-8995-427f-a04b-d94e10fbb53a@bonslack.org> Date: Sat, 30 Aug 2025 15:18:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Luca Bonissi Subject: [PATCH 5/7] Add termios2 support to ppc target To: Richard Henderson , Laurent Vivier Cc: qemu-devel@nongnu.org Content-Language: it Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=37.247.49.194; envelope-from=qemu@bonslack.org; helo=bonnix2.bonnix.it X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org >From db847c6abfd73f8d17462cd9358d6ec8dba1c473 Mon Sep 17 00:00:00 2001 From: Luca Bonissi Date: Sat, 30 Aug 2025 14:52:32 +0200 Subject: [PATCH 5/7] Add termios2 support to ppc target Signed-off-by: Luca Bonissi --- linux-user/ppc/termbits.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/linux-user/ppc/termbits.h b/linux-user/ppc/termbits.h index eb226e0999..ae6ee8897c 100644 --- a/linux-user/ppc/termbits.h +++ b/linux-user/ppc/termbits.h @@ -20,6 +20,28 @@ struct target_termios { target_speed_t c_ospeed; /* output speed */ }; +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_cc[TARGET_NCCS]; /* control characters */ + target_cc_t c_line; /* line discipline */ + 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_cc[TARGET_NCCS]; /* control characters */ + target_cc_t c_line; /* line discipline */ + target_speed_t c_ispeed; /* input speed */ + target_speed_t c_ospeed; /* output speed */ +}; + /* c_cc character offsets */ #define TARGET_VINTR 0 #define TARGET_VQUIT 1 @@ -225,6 +247,8 @@ struct target_termios { #define TARGET_TIOCSBRK 0x5427 /* BSD compatibility */ #define TARGET_TIOCCBRK 0x5428 /* BSD compatibility */ #define TARGET_TIOCGSID 0x5429 /* Return the session ID of FD */ +#define TARGET_TIOCGRS485 0x542e +#define TARGET_TIOCSRS485 0x542f #define TARGET_TIOCGPTN TARGET_IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ #define TARGET_TIOCSPTLCK TARGET_IOW('T',0x31, int) /* Lock/unlock Pty */ #define TARGET_TIOCGPTPEER TARGET_IO('T', 0x41) /* Safely open the slave */ -- 2.50.1