summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorErnesto Corona <ernesto.corona@intel.com>2021-03-04 03:11:47 +0300
committerJae Hyun Yoo <jae.hyun.yoo@linux.intel.com>2021-11-05 10:22:15 +0300
commit85ca327941d2ccb9e93c30e0e94630896b4cfd94 (patch)
tree119f8cb4fb226db34cf57cdeaa949bc290107b80 /include/uapi
parent4d407c914a89eda4a73ea8d539dd1b778777b55e (diff)
downloadlinux-85ca327941d2ccb9e93c30e0e94630896b4cfd94.tar.xz
ASD Prevent TDI remaining bits to be override during JTAG xfer
JTAG xfer length is measured in bits and it is allowed to send non 8-bit aligned xfers. For such xfers we will read the content of the remaining bits in the last byte of tdi buffer and restore those bits along with the xfer readback. Add also linux types to JTAG header to remove external dependencies. Test: SPR ASD Sanity and jtag_test finished successfully. SKX ASD Sanity and jtag_test finished successfully. Signed-off-by: Ernesto Corona <ernesto.corona@intel.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/jtag.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/jtag.h b/include/uapi/linux/jtag.h
index 220ffabe81cd..256ec7231629 100644
--- a/include/uapi/linux/jtag.h
+++ b/include/uapi/linux/jtag.h
@@ -6,6 +6,9 @@
#ifndef __UAPI_LINUX_JTAG_H
#define __UAPI_LINUX_JTAG_H
+#include <linux/types.h>
+#include <linux/ioctl.h>
+
/*
* JTAG_XFER_MODE: JTAG transfer mode. Used to set JTAG controller transfer mode
* This is bitmask for feature param in jtag_mode for ioctl JTAG_SIOCMODE