blob: b1dfd33dbfe3ca174e24d4e8d00a541ce6c5477e [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))
Nick Kralevicha67e4de2013-01-14 11:28:26 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080024#define ADB_WRITEREG(id,reg) (0x08 | (reg) | ((id) << 4))
25#define ADB_READREG(id,reg) (0x0C | (reg) | ((id) << 4))
Ben Cheng655a7c02013-10-16 16:09:24 -070026#define ADB_DONGLE 1
27#define ADB_KEYBOARD 2
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 -070029#define ADB_MOUSE 3
30#define ADB_TABLET 4
31#define ADB_MODEM 5
32#define ADB_MISC 7
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#define ADB_RET_OK 0
35#define ADB_RET_TIMEOUT 3
36#define ADB_PACKET 0
37#define CUDA_PACKET 1
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 ERROR_PACKET 2
40#define TIMER_PACKET 3
41#define POWER_PACKET 4
42#define MACIIC_PACKET 5
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 PMU_PACKET 6
45#define ADB_QUERY 7
46#define ADB_QUERY_GETDEVINFO 1
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 */