summaryrefslogtreecommitdiff
path: root/include/uapi/linux/hidraw.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2019-12-04 06:41:09 +0300
committerJiri Kosina <jkosina@suse.cz>2019-12-11 17:31:52 +0300
commit2f48865db3322f8e74f51ff93b91e5c2916dd259 (patch)
tree1474f4e68c021e7aa3c1a5c1621e16a908c27ee6 /include/uapi/linux/hidraw.h
parentd004701d1cc5a036b1f2dec34dd5973064c72eab (diff)
downloadlinux-2f48865db3322f8e74f51ff93b91e5c2916dd259.tar.xz
HID: hidraw: add support uniq ioctl
Add support for reading out the uniq information from the underlying HID device. This might be the iSerialNumber in case of USB or the BD_ADDR in case of Bluetooth. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/uapi/linux/hidraw.h')
-rw-r--r--include/uapi/linux/hidraw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/hidraw.h b/include/uapi/linux/hidraw.h
index 98e2c493de85..4913539e5bcc 100644
--- a/include/uapi/linux/hidraw.h
+++ b/include/uapi/linux/hidraw.h
@@ -39,6 +39,7 @@ struct hidraw_devinfo {
/* The first byte of SFEATURE and GFEATURE is the report number */
#define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len)
#define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len)
+#define HIDIOCGRAWUNIQ(len) _IOC(_IOC_READ, 'H', 0x08, len)
#define HIDRAW_FIRST_MINOR 0
#define HIDRAW_MAX_DEVICES 64