blob: 0681ece091cfef1acd9ba42a0827c1975ee41b38 [file] [log] [blame]
Nick Pellyb3765b22010-08-16 15:31:01 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef _HIDRAW_H
13#define _HIDRAW_H
Ben Cheng4b29af02012-03-07 16:14:53 -080014
Nick Pellyb3765b22010-08-16 15:31:01 -070015#include <linux/hid.h>
16#include <linux/types.h>
Ben Cheng4b29af02012-03-07 16:14:53 -080017
Nick Pellyb3765b22010-08-16 15:31:01 -070018struct hidraw_report_descriptor {
19 __u32 size;
20 __u8 value[HID_MAX_DESCRIPTOR_SIZE];
21};
Ben Cheng4b29af02012-03-07 16:14:53 -080022
Nick Pellyb3765b22010-08-16 15:31:01 -070023struct hidraw_devinfo {
24 __u32 bustype;
25 __s16 vendor;
26 __s16 product;
27};
Ben Cheng4b29af02012-03-07 16:14:53 -080028
Nick Pellyb3765b22010-08-16 15:31:01 -070029#define HIDIOCGRDESCSIZE _IOR('H', 0x01, int)
30#define HIDIOCGRDESC _IOR('H', 0x02, struct hidraw_report_descriptor)
31#define HIDIOCGRAWINFO _IOR('H', 0x03, struct hidraw_devinfo)
32#define HIDIOCGRAWNAME(len) _IOC(_IOC_READ, 'H', 0x04, len)
33#define HIDIOCGRAWPHYS(len) _IOC(_IOC_READ, 'H', 0x05, len)
Ben Cheng4b29af02012-03-07 16:14:53 -080034
Nick Pellyb3765b22010-08-16 15:31:01 -070035#define HIDRAW_FIRST_MINOR 0
36#define HIDRAW_MAX_DEVICES 64
Ben Cheng4b29af02012-03-07 16:14:53 -080037
Nick Pellyb3765b22010-08-16 15:31:01 -070038#define HIDRAW_BUFFER_SIZE 64
Ben Cheng4b29af02012-03-07 16:14:53 -080039
Nick Pellyb3765b22010-08-16 15:31:01 -070040#endif
Ben Cheng4b29af02012-03-07 16:14:53 -080041