/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (c) 2007 Jiri Kosina */ /* * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef _UAPI_HIDRAW_H #define _UAPI_HIDRAW_H #include <linux/hid.h> #include <linux/types.h> struct hidraw_report_descriptor { … }; struct hidraw_devinfo { … }; /* ioctl interface */ #define HIDIOCGRDESCSIZE … #define HIDIOCGRDESC … #define HIDIOCGRAWINFO … #define HIDIOCGRAWNAME(len) … #define HIDIOCGRAWPHYS(len) … /* The first byte of SFEATURE and GFEATURE is the report number */ #define HIDIOCSFEATURE(len) … #define HIDIOCGFEATURE(len) … #define HIDIOCGRAWUNIQ(len) … /* The first byte of SINPUT and GINPUT is the report number */ #define HIDIOCSINPUT(len) … #define HIDIOCGINPUT(len) … /* The first byte of SOUTPUT and GOUTPUT is the report number */ #define HIDIOCSOUTPUT(len) … #define HIDIOCGOUTPUT(len) … #define HIDRAW_FIRST_MINOR … #define HIDRAW_MAX_DEVICES … /* number of reports to buffer */ #define HIDRAW_BUFFER_SIZE … /* kernel-only API declarations */ #endif /* _UAPI_HIDRAW_H */