From patchwork Tue Sep 9 18:58:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda Delgado X-Patchwork-Id: 4872491 Return-Path: X-Original-To: patchwork-linux-parisc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id ADBC99F371 for ; Tue, 9 Sep 2014 18:58:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D3E1E20179 for ; Tue, 9 Sep 2014 18:58:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0E85820172 for ; Tue, 9 Sep 2014 18:58:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751597AbaIIS6U (ORCPT ); Tue, 9 Sep 2014 14:58:20 -0400 Received: from mail-lb0-f173.google.com ([209.85.217.173]:61792 "EHLO mail-lb0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751004AbaIIS6T (ORCPT ); Tue, 9 Sep 2014 14:58:19 -0400 Received: by mail-lb0-f173.google.com with SMTP id w7so4506501lbi.4 for ; Tue, 09 Sep 2014 11:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=VonALRXN9TU7I3stl9QFa1gR0JCQROkyf1JNanfN8i8=; b=Xalsx7yu1FAg8qoEypxTKWIjetpNhigBoccvnMBpnpWV93yTJFZYClkEZVPMAgRqDd g4qtFgVJ76FE/BYpRWL8jPCArxUr0mKL7XoRn2m6rJX6BKK2S6BH6Ojh1B+30Lw9lMh/ eH5R4mM3DH2C2PjwrAT5RKrMHnOPmeCM3a8NHZqDpaOWMD2K5RUJPzVIpp2dNiSg7iGg LYUVdKigs6gL2+5Hbb8lAlvTYhkuIrIt0psFFiE/7gY9WaKtd64SbXoJ9ssJJJMnOFNn zs9hj9Yrbpuo9P1jhe853dPw38quIO07nP1/MDP9/4ah0SpHwpnSsb4t105yXlhRPi3Y XZwA== X-Received: by 10.152.26.101 with SMTP id k5mr4325489lag.74.1410289097321; Tue, 09 Sep 2014 11:58:17 -0700 (PDT) Received: from neopili.qtec.com (x1-6-30-46-9a-6d-3c-54.cpe.webspeed.dk. [2.108.161.190]) by mx.google.com with ESMTPSA id m5sm4540667laa.37.2014.09.09.11.58.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Sep 2014 11:58:16 -0700 (PDT) From: Ricardo Ribalda Delgado To: "James E . J . Bottomley" , Helge Deller , linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Greg KH Cc: Ricardo Ribalda Delgado Subject: [PATCH 1/3 v2] parisc/uapi: Add definition of TIOC[SG]RS485 Date: Tue, 9 Sep 2014 20:58:15 +0200 Message-Id: <1410289095-3809-1-git-send-email-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.1.0 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit: e676253b19b2d269cccf67fdb1592120a0cd0676 (serial/8250: Add support for RS485 IOCTLs), adds support for RS485 ioctls for 825_core on all the archs. Unfortunaltely the definition of TIOCSRS485 and TIOCGRS485 was missing on the ioctls.h file Signed-off-by: Ricardo Ribalda Delgado --- Changelog: v2: By GregKH Follow the ioctl numbering scheme used by the particular architecture UAPI file you are editing. arch/parisc/include/uapi/asm/ioctls.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/parisc/include/uapi/asm/ioctls.h b/arch/parisc/include/uapi/asm/ioctls.h index 66719c3..b6572f0 100644 --- a/arch/parisc/include/uapi/asm/ioctls.h +++ b/arch/parisc/include/uapi/asm/ioctls.h @@ -50,6 +50,8 @@ #define TCSETS2 _IOW('T',0x2B, struct termios2) #define TCSETSW2 _IOW('T',0x2C, struct termios2) #define TCSETSF2 _IOW('T',0x2D, struct termios2) +#define TIOCGRS485 _IOR('T', 0x2E, struct serial_rs485) +#define TIOCSRS485 _IOWR('T', 0x2F, struct serial_rs485) #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */ #define TIOCGDEV _IOR('T',0x32, int) /* Get primary device node of /dev/console */