[PATCH v29 5/6] Documentation jtag: Add JTAG core driver ioctl number

Ernesto Corona ernesto.corona at intel.com
Tue Apr 14 08:29:19 AEST 2020


JTAG class driver provide infrastructure to support hardware/software
JTAG platform drivers. It provide user layer API interface for flashing
and debugging external devices which equipped with JTAG interface
using standard transactions.

Driver exposes set of IOCTL to user space for:
- XFER:
  SIR (Scan Instruction Register, IEEE 1149.1 Data Register scan);
  SDR (Scan Data Register, IEEE 1149.1 Instruction Register scan);
- GIOCSTATUS read the current TAPC state of the JTAG controller
- SIOCSTATE Forces the JTAG TAPC to go into a particular state.
- SIOCFREQ/GIOCFREQ for setting and reading JTAG frequency.
- IOCBITBANG for low level control of JTAG signals.

Signed-off-by: Oleksandr Shamray <oleksandrs at mellanox.com>
Signed-off-by: Ernesto Corona <ernesto.corona at intel.com>
Acked-by: Philippe Ombredanne <pombredanne at nexb.com>
Cc: Jonathan Corbet <corbet at lwn.net>
Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
Cc: Gustavo Pimentel <gustavo.pimentel at synopsys.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi at arm.com>
Cc: Kishon Vijay Abraham I <kishon at ti.com>
Cc: Darrick J. Wong <darrick.wong at oracle.com>
Cc: Bryant G. Ly <bryantly at linux.vnet.ibm.com>
Cc: Eric Sandeen <sandeen at redhat.com>
Cc: Randy Dunlap <rdunlap at infradead.org>
Cc: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Cc: Arnd Bergmann <arnd at arndb.de>
Cc: Mauro Carvalho Chehab <mchehab+samsung at kernel.org>
Cc: Alexandre Belloni <alexandre.belloni at bootlin.com>
Cc: "Theodore Ts'o" <tytso at mit.edu>
Cc: Eric Biggers <ebiggers at google.com>
Cc: Steven Filary <steven.a.filary at intel.com>
Cc: Jiri Pirko <jiri at mellanox.com>
Cc: Vadim Pasternak <vadimp at mellanox.com>
Cc: Amithash Prasad <amithash at fb.com>
Cc: Patrick Williams <patrickw3 at fb.com>
Cc: Rgrs <rgrs at protonmail.com>

v28->v29
Move ioctl number to userspace-api/ioctl/ioctl-number.rst
---
 Documentation/userspace-api/ioctl/ioctl-number.rst | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/userspace-api/ioctl/ioctl-number.rst b/Documentation/userspace-api/ioctl/ioctl-number.rst
index f759edafd938..7c005fc9a1c2 100644
--- a/Documentation/userspace-api/ioctl/ioctl-number.rst
+++ b/Documentation/userspace-api/ioctl/ioctl-number.rst
@@ -332,6 +332,8 @@ Code  Seq#    Include File                                           Comments
                                                                      <mailto:vgo at ratio.de>
 0xB1  00-1F                                                          PPPoX
                                                                      <mailto:mostrows at styx.uwaterloo.ca>
+0xB2  00-0F  linux/jtag.h                                            JTAG driver
+                                                                     <mailto:oleksandrs at mellanox.com>
 0xB3  00     linux/mmc/ioctl.h
 0xB4  00-0F  linux/gpio.h                                            <mailto:linux-gpio at vger.kernel.org>
 0xB5  00-0F  uapi/linux/rpmsg.h                                      <mailto:linux-remoteproc at vger.kernel.org>
-- 
2.17.1



More information about the Linux-aspeed mailing list