adb.h
01:
02:
03:
04: #ifndef __ADB_H
05: #define __ADB_H
06:
07:
08: #define ADB_BUSRESET 0
09: #define ADB_FLUSH(id) (0x01 | ((id) << 4))
10: #define ADB_WRITEREG(id, reg) (0x08 | (reg) | ((id) << 4))
11: #define ADB_READREG(id, reg) (0x0C | (reg) | ((id) << 4))
12:
13:
14: #define ADB_DONGLE 1
15: #define ADB_KEYBOARD 2
16: #define ADB_MOUSE 3
17: #define ADB_TABLET 4
18: #define ADB_MODEM 5
19: #define ADB_MISC 7
20:
21: #define ADB_RET_OK 0
22: #define ADB_RET_TIMEOUT 3
23:
24:
25:
26: #define ADB_PACKET 0
27: #define CUDA_PACKET 1
28: #define ERROR_PACKET 2
29: #define TIMER_PACKET 3
30: #define POWER_PACKET 4
31: #define MACIIC_PACKET 5
32: #define PMU_PACKET 6
33: #define ADB_QUERY 7
34:
35:
36:
37:
38:
39:
40:
41: #define ADB_QUERY_GETDEVINFO 1
42:
43:
44: #endif
45:
© Andrew Scott 2006 -
2025,
All Rights Reserved