| Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 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 |  ****************************************************************************/ | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | #ifndef _UAPI__ADB_H | 
 | 20 | #define _UAPI__ADB_H | 
 | 21 | #define ADB_BUSRESET 0 | 
 | 22 | #define ADB_FLUSH(id) (0x01 | ((id) << 4)) | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 23 | #define ADB_WRITEREG(id,reg) (0x08 | (reg) | ((id) << 4)) | 
 | 24 | #define ADB_READREG(id,reg) (0x0C | (reg) | ((id) << 4)) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 25 | #define ADB_DONGLE 1 | 
 | 26 | #define ADB_KEYBOARD 2 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define ADB_MOUSE 3 | 
 | 28 | #define ADB_TABLET 4 | 
 | 29 | #define ADB_MODEM 5 | 
 | 30 | #define ADB_MISC 7 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define ADB_RET_OK 0 | 
 | 32 | #define ADB_RET_TIMEOUT 3 | 
 | 33 | #define ADB_PACKET 0 | 
 | 34 | #define CUDA_PACKET 1 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | #define ERROR_PACKET 2 | 
 | 36 | #define TIMER_PACKET 3 | 
 | 37 | #define POWER_PACKET 4 | 
 | 38 | #define MACIIC_PACKET 5 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | #define PMU_PACKET 6 | 
 | 40 | #define ADB_QUERY 7 | 
 | 41 | #define ADB_QUERY_GETDEVINFO 1 | 
| Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 42 | #endif |