blob: 0ffacead0aa3ae86557ce056b6452bd7d96bffd9 [file] [log] [blame]
Nick Kralevicha67e4de2013-01-14 11:28:26 -08001/****************************************************************************
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 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
Ben Cheng655a7c02013-10-16 16:09:24 -070019#ifndef _UAPI_HIDRAW_H
20#define _UAPI_HIDRAW_H
21#include <linux/hid.h>
22#include <linux/types.h>
Nick Kralevicha67e4de2013-01-14 11:28:26 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070024struct hidraw_report_descriptor {
25 __u32 size;
26 __u8 value[HID_MAX_DESCRIPTOR_SIZE];
27};
Nick Kralevicha67e4de2013-01-14 11:28:26 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070029struct hidraw_devinfo {
30 __u32 bustype;
31 __s16 vendor;
32 __s16 product;
Nick Kralevicha67e4de2013-01-14 11:28:26 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070034};
35#define HIDIOCGRDESCSIZE _IOR('H', 0x01, int)
36#define HIDIOCGRDESC _IOR('H', 0x02, struct hidraw_report_descriptor)
37#define HIDIOCGRAWINFO _IOR('H', 0x03, struct hidraw_devinfo)
Nick Kralevicha67e4de2013-01-14 11:28:26 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define HIDIOCGRAWNAME(len) _IOC(_IOC_READ, 'H', 0x04, len)
40#define HIDIOCGRAWPHYS(len) _IOC(_IOC_READ, 'H', 0x05, len)
41#define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len)
42#define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len)
Nick Kralevicha67e4de2013-01-14 11:28:26 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070044#define HIDRAW_FIRST_MINOR 0
45#define HIDRAW_MAX_DEVICES 64
46#define HIDRAW_BUFFER_SIZE 64
Nick Kralevicha67e4de2013-01-14 11:28:26 -080047#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */