Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp14629imm; Thu, 4 Oct 2018 15:31:55 -0700 (PDT) X-Google-Smtp-Source: ACcGV61F09HqvPBfPWARAFQuDV9vmeJPuL9+o8xobCb2E8L1NpvtmPLbBYrIyhu1Jip2zkD5dOwb X-Received: by 2002:a63:ee43:: with SMTP id n3-v6mr7150405pgk.234.1538692315067; Thu, 04 Oct 2018 15:31:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538692315; cv=none; d=google.com; s=arc-20160816; b=kjt2ijFiX1pP8z87LtsvK968T4YFmMrvl60nvVPKy6bPhNhJpsMJEHucc/HIdxxOr1 6KYXjRs2/q9c+RGk8uv8aOcOh3d1WUQY4Vy+ze88ePhfgLujc3wgv/aSIknx9JK2DCrD faziEmLOzovogLpVW7alVhpZIM5+TVeoy7mKXzc1q9iWEevXKBFwNUDPprLUduCPezuG Er7sdlNbhMa+cKoEOH5s9QTuz8Og6gKGAjI3kQrkZJh9NpTIzQmswpWJh7pQ0uZbAZZf ngrJ/54fcROyDXJkv7eNJIVWmzRkI1suTZQe5ke/gpANOFTaJ3xfCz5EX0vLtaOwbG0D PgMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=/MALLCgTU1pyzHIZyS647g1Yhu/p1QA71/M6SczllFo=; b=WctL1A/cR4LQPWeP/ve35Ak913bqi1i7qi6Zs8wGisxxK/rECblHi34FDh8U7m2OdP IXYK9E+KF+evTDXVwvGowHJALSKn5UD+QMHitLVkG6+91AN33qkbyFSG9BLQKB1oUV6J cH5LYIaVfTLQgiaF1d/gCqXrErlmCd2drZ9oDW0+OCcDiAqX2G8BCpcmS4IgEVz0Fn9a rk3PDUOmopQv6o6xJ7D6tx72Ez3o0M5DUrWRgERBWU811NSmVYNK/E6xW6yNEJ42Z/l4 lgVc5jzaSWI+gUjk0n38iMYYSXGtewSgZjL7A37IHfmrBJx1us3vrzKP6cyLwwh0hbGO m/VQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13-v6si4901623pgq.426.2018.10.04.15.31.39; Thu, 04 Oct 2018 15:31:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727709AbeJEFZr (ORCPT + 99 others); Fri, 5 Oct 2018 01:25:47 -0400 Received: from mga17.intel.com ([192.55.52.151]:23017 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725997AbeJEFZr (ORCPT ); Fri, 5 Oct 2018 01:25:47 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Oct 2018 15:30:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,341,1534834800"; d="scan'208";a="94741757" Received: from hanvin-mobl2.amr.corp.intel.com ([10.254.189.220]) by fmsmga004.fm.intel.com with ESMTP; 04 Oct 2018 15:30:02 -0700 From: "H. Peter Anvin (Intel)" To: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-serial@vger.kernel.org Cc: "H. Peter Anvin (Intel)" , Arnd Bergmann , Greg Kroah-Hartman , Jiri Slaby Subject: [PATCH 1/5] asm-generic, termios: add alias constants from MIPS Date: Thu, 4 Oct 2018 15:29:49 -0700 Message-Id: <20181004222953.2229-2-hpa@zytor.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181004222953.2229-1-hpa@zytor.com> References: <20181004222953.2229-1-hpa@zytor.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some architectures, in this case MIPS, need a couple of legacy alias constants for bits. There really is no reason why we can't define them generically for all architectures. Signed-off-by: H. Peter Anvin (Intel) Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Cc: Jiri Slaby linux-kernel@vger.kernel.org (open list) --- include/uapi/asm-generic/termbits.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/uapi/asm-generic/termbits.h b/include/uapi/asm-generic/termbits.h index 2fbaf9ae89dd..96ae175eec5b 100644 --- a/include/uapi/asm-generic/termbits.h +++ b/include/uapi/asm-generic/termbits.h @@ -8,7 +8,10 @@ typedef unsigned char cc_t; typedef unsigned int speed_t; typedef unsigned int tcflag_t; -#define NCCS 19 +#ifndef NCCS +# define NCCS 19 +#endif + struct termios { tcflag_t c_iflag; /* input mode flags */ tcflag_t c_oflag; /* output mode flags */ @@ -49,6 +52,7 @@ struct ktermios { #define VTIME 5 #define VMIN 6 #define VSWTC 7 +#define VSWTCH VSWTC #define VSTART 8 #define VSTOP 9 #define VSUSP 10 @@ -173,6 +177,7 @@ struct ktermios { #define ECHONL 0000100 #define NOFLSH 0000200 #define TOSTOP 0000400 +#define ITOSTOP TOSTOP #define ECHOCTL 0001000 #define ECHOPRT 0002000 #define ECHOKE 0004000 -- 2.14.4