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 *** 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 ****************************************************************************/ 19 #ifndef _UAPI__ADB_H 20 #define _UAPI__ADB_H 21 #define ADB_BUSRESET 0 22 #define ADB_FLUSH(id) (0x01 | ((id) << 4)) 23 #define ADB_WRITEREG(id,reg) (0x08 | (reg) | ((id) << 4)) 24 #define ADB_READREG(id,reg) (0x0C | (reg) | ((id) << 4)) 25 #define ADB_DONGLE 1 26 #define ADB_KEYBOARD 2 27 #define ADB_MOUSE 3 28 #define ADB_TABLET 4 29 #define ADB_MODEM 5 30 #define ADB_MISC 7 31 #define ADB_RET_OK 0 32 #define ADB_RET_TIMEOUT 3 33 #define ADB_PACKET 0 34 #define CUDA_PACKET 1 35 #define ERROR_PACKET 2 36 #define TIMER_PACKET 3 37 #define POWER_PACKET 4 38 #define MACIIC_PACKET 5 39 #define PMU_PACKET 6 40 #define ADB_QUERY 7 41 #define ADB_QUERY_GETDEVINFO 1 42 #endif 43