Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _UAPI__ADB_H |
| 8 | #define _UAPI__ADB_H |
| 9 | #define ADB_BUSRESET 0 |
| 10 | #define ADB_FLUSH(id) (0x01 | ((id) << 4)) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 11 | #define ADB_WRITEREG(id,reg) (0x08 | (reg) | ((id) << 4)) |
| 12 | #define ADB_READREG(id,reg) (0x0C | (reg) | ((id) << 4)) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 13 | #define ADB_DONGLE 1 |
| 14 | #define ADB_KEYBOARD 2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 15 | #define ADB_MOUSE 3 |
| 16 | #define ADB_TABLET 4 |
| 17 | #define ADB_MODEM 5 |
| 18 | #define ADB_MISC 7 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | #define ADB_RET_OK 0 |
| 20 | #define ADB_RET_TIMEOUT 3 |
| 21 | #define ADB_PACKET 0 |
| 22 | #define CUDA_PACKET 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define ERROR_PACKET 2 |
| 24 | #define TIMER_PACKET 3 |
| 25 | #define POWER_PACKET 4 |
| 26 | #define MACIIC_PACKET 5 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define PMU_PACKET 6 |
| 28 | #define ADB_QUERY 7 |
| 29 | #define ADB_QUERY_GETDEVINFO 1 |
Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 30 | #endif |