hidraw.h revision b3765b2ee701492afd83cef5a60b47cce0f1c4a4
1/****************************************************************************
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
14
15#include <linux/hid.h>
16#include <linux/types.h>
17
18struct hidraw_report_descriptor {
19 __u32 size;
20 __u8 value[HID_MAX_DESCRIPTOR_SIZE];
21};
22
23struct hidraw_devinfo {
24 __u32 bustype;
25 __s16 vendor;
26 __s16 product;
27};
28
29#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)
34
35#define HIDRAW_FIRST_MINOR 0
36#define HIDRAW_MAX_DEVICES 64
37
38#define HIDRAW_BUFFER_SIZE 64
39
40#endif
41
42