blob: ddb3b65467f43e95e81d99036f2bf433876d466c [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__ADB_H
20#define _UAPI__ADB_H
21#define ADB_BUSRESET 0
22#define ADB_FLUSH(id) (0x01 | ((id) << 4))
Tao Baod7db5942015-01-28 10:07:51 -080023#define ADB_WRITEREG(id,reg) (0x08 | (reg) | ((id) << 4))
24#define ADB_READREG(id,reg) (0x0C | (reg) | ((id) << 4))
Ben Cheng655a7c02013-10-16 16:09:24 -070025#define ADB_DONGLE 1
26#define ADB_KEYBOARD 2
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define ADB_MOUSE 3
28#define ADB_TABLET 4
29#define ADB_MODEM 5
30#define ADB_MISC 7
Ben Cheng655a7c02013-10-16 16:09:24 -070031#define ADB_RET_OK 0
32#define ADB_RET_TIMEOUT 3
33#define ADB_PACKET 0
34#define CUDA_PACKET 1
Ben Cheng655a7c02013-10-16 16:09:24 -070035#define ERROR_PACKET 2
36#define TIMER_PACKET 3
37#define POWER_PACKET 4
38#define MACIIC_PACKET 5
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define PMU_PACKET 6
40#define ADB_QUERY 7
41#define ADB_QUERY_GETDEVINFO 1
Nick Kralevicha67e4de2013-01-14 11:28:26 -080042#endif