Received: by 10.223.185.116 with SMTP id b49csp2398006wrg; Mon, 12 Feb 2018 08:56:31 -0800 (PST) X-Google-Smtp-Source: AH8x226TG/UwvXt+MZLL1hcC31nhB8CDUJF1jvOJc0cgi4BrTYue8wrpr7/4doKVJlnhFjApBFjd X-Received: by 2002:a17:902:208:: with SMTP id 8-v6mr11350609plc.359.1518454591566; Mon, 12 Feb 2018 08:56:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518454591; cv=none; d=google.com; s=arc-20160816; b=aGHmCztAyE/zOeurdUEaBOT3uYg7pkXPZxpkqs2iCBjzDwYTXRbLnFcoilXPVO54ti O4QvgLn5cXLHIWbDjuo+w77NAPc05jWV2fxYrBGW46w1xccN+4tynxyH5OwIFCjiOuIX i0m7GE3sdXDATDE74lXj95U3sZTV1eSKL+Ld0LFEB/R6PGHZ5ixfQlKQ+p+z7Ij0YZCi 4v1z/qa2avvVaknVjfZXySP8BOxKsgq6DIqgBKqfiq/4GcNcWemnMgy248YTK+dhQrqL N7zqv5/2QKKxTLdRIj46covw3LLTfHwbyX2WJGNsT3oGy54jgvjmtPB/F6lV8ms9h2Gx TMqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=eyXRhIYJm3wV7kI+9hJcxdeifGMIG49xzrB3Jfnctxc=; b=qOFXHbmAI4rSdQudyPh6ZYyNZXomrx8w1Tfy7U42tgRrXD401ZSswRFEjDiY4d5YDu ZHujkVX+Iosi+ZE/gytsQdyCUAHRmZw+7uKZ81B+TOgAISE76ga2lMc8iioy3Ya9KnJR zy+tTJvn811L25jclxl0TRwcavuB6RNtqmOJWfzw/cEK4DK/Fa3WKxyXMlSGY/e7diU9 vhCVWe2orrKdGh9l+Lkl80EU7qgzqPvkF2jTc0FpqZEl7r0CgHfjaygZmv+GWt/q/EHj NN0n9W2uQnCmOnb/TcODyf1hQw88d8TJwL7T17RFK6prtcypdJpp6qn9Ypif3MFLgs2p gCiw== 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 e62si1530192pfa.7.2018.02.12.08.56.16; Mon, 12 Feb 2018 08:56:31 -0800 (PST) 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 S1752939AbeBLPZQ convert rfc822-to-8bit (ORCPT + 99 others); Mon, 12 Feb 2018 10:25:16 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:43011 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752692AbeBLPZO (ORCPT ); Mon, 12 Feb 2018 10:25:14 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 92BBD8015E; Mon, 12 Feb 2018 16:25:12 +0100 (CET) Date: Mon, 12 Feb 2018 00:43:44 +0100 From: Pavel Machek To: Oleksandr Shamray Cc: gregkh@linuxfoundation.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, openbmc@lists.ozlabs.org, joel@jms.id.au, jiri@resnulli.us, tklauser@distanz.ch, linux-serial@vger.kernel.org, vadimp@mellanox.com, system-sw-low-level@mellanox.com, robh+dt@kernel.org, openocd-devel-owner@lists.sourceforge.net, linux-api@vger.kernel.org, davem@davemloft.net, mchehab@kernel.org Subject: Re: [patch v14 4/4] Documentation: jtag: Add ABI documentation Message-ID: <20180211234344.GA3864@localhost> References: <1513268971-13518-1-git-send-email-oleksandrs@mellanox.com> <1513268971-13518-5-git-send-email-oleksandrs@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <1513268971-13518-5-git-send-email-oleksandrs@mellanox.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > @@ -0,0 +1,27 @@ > +What: /dev/jtag[0-9]+ > +Date: October 2017 > +KernelVersion: 4.15 > +Contact: oleksandrs@mellanox.com > +Description: > + The misc device files /dev/jtag* are the interface > + between JTAG master interface and userspace. > + > + The ioctl(2)-based ABI is defined and documented in > + [include/uapi]. > + > + The following file operations are supported: > + > + open(2) > + The argument flag currently support only one access > + mode O_RDWR. > + > + ioctl(2) > + Initiate various actions. > + See the inline documentation in [include/uapi] > + for descriptions of all ioctls. I tried reading the jtag.h, and am still not sure how it works. Real docs would be nice... In particular, it seems to always specify read or write actiom. Sounds like a job for read/write syscalls? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html