[PATCH 30 5/7] Add JTAG core driver ioctl number

Corona, Ernesto ernesto.corona at intel.com
Tue Jan 30 15:32:14 PST 2024


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>
Signed-off-by: Omar Castro <omar.eduardo.castro at linux.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 nvidia.com>
Cc: Vadim Pasternak <vadimp at mellanox.com>
Cc: Amithash Prasad <amithash at fb.com>
Cc: Patrick Williams <patrickw3 at fb.com>
Cc: Luke Chen <luke_chen at aspeedtech.com>
Cc: Billy Tsai <billy_tsai at aspeedtech.com>
Cc: Rgrs <rgrs at protonmail.com>

v29->v30
Update Ioctl number to 0xB9 due conflicts.
Change email contact.

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 457e16f06e04..cf602aa3a853 100644
--- a/Documentation/userspace-api/ioctl/ioctl-number.rst
+++ b/Documentation/userspace-api/ioctl/ioctl-number.rst
@@ -358,6 +358,8 @@ Code  Seq#    Include File                                           Comments
 0xB6  all    linux/fpga-dfl.h
 0xB7  all    uapi/linux/remoteproc_cdev.h                            <mailto:linux-remoteproc at vger.kernel.org>
 0xB7  all    uapi/linux/nsfs.h                                       <mailto:Andrei Vagin <avagin at openvz.org>>
+0xB9  00-0F  linux/jtag.h                                            JTAG driver
+                                                                     <mailto:ernesto.corona at intel.com>
 0xC0  00-0F  linux/usb/iowarrior.h
 0xCA  00-0F  uapi/misc/cxl.h
 0xCA  10-2F  uapi/misc/ocxl.h
-- 
2.25.1



More information about the linux-arm-kernel mailing list