diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-10-30 03:20:56 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-10-30 03:20:56 -0400 |
| commit | 53279f36dccffc26ff536003fd6bb97cc21c3b82 (patch) | |
| tree | 9d16e497c0e4158c7c054c479bd0e9ff0388d7bb /include/linux/adb.h | |
| parent | a6e8c0a25377e27958b11b20e1927885ae7c9857 (diff) | |
| parent | 8f0d8163b50e01f398b14bcd4dc039ac5ab18d64 (diff) | |
Merge tag 'v3.7-rc3' into next to sync up with recent USB and MFD changes
Diffstat (limited to 'include/linux/adb.h')
| -rw-r--r-- | include/linux/adb.h | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/include/linux/adb.h b/include/linux/adb.h index 63bca502fa55..cde41300c7ad 100644 --- a/include/linux/adb.h +++ b/include/linux/adb.h | |||
| @@ -4,43 +4,8 @@ | |||
| 4 | #ifndef __ADB_H | 4 | #ifndef __ADB_H |
| 5 | #define __ADB_H | 5 | #define __ADB_H |
| 6 | 6 | ||
| 7 | /* ADB commands */ | 7 | #include <uapi/linux/adb.h> |
| 8 | #define ADB_BUSRESET 0 | ||
| 9 | #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 | 8 | ||
| 13 | /* ADB default device IDs (upper 4 bits of ADB command byte) */ | ||
| 14 | #define ADB_DONGLE 1 /* "software execution control" devices */ | ||
| 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 /* maybe a monitor */ | ||
| 20 | |||
| 21 | #define ADB_RET_OK 0 | ||
| 22 | #define ADB_RET_TIMEOUT 3 | ||
| 23 | |||
| 24 | /* The kind of ADB request. The controller may emulate some | ||
| 25 | or all of those CUDA/PMU packet kinds */ | ||
| 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 | /* ADB queries */ | ||
| 36 | |||
| 37 | /* ADB_QUERY_GETDEVINFO | ||
| 38 | * Query ADB slot for device presence | ||
| 39 | * data[2] = id, rep[0] = orig addr, rep[1] = handler_id | ||
| 40 | */ | ||
| 41 | #define ADB_QUERY_GETDEVINFO 1 | ||
| 42 | |||
| 43 | #ifdef __KERNEL__ | ||
| 44 | 9 | ||
| 45 | struct adb_request { | 10 | struct adb_request { |
| 46 | unsigned char data[32]; | 11 | unsigned char data[32]; |
| @@ -98,6 +63,4 @@ int adb_reset_bus(void); | |||
| 98 | int adb_try_handler_change(int address, int new_id); | 63 | int adb_try_handler_change(int address, int new_id); |
| 99 | int adb_get_infos(int address, int *original_address, int *handler_id); | 64 | int adb_get_infos(int address, int *original_address, int *handler_id); |
| 100 | 65 | ||
| 101 | #endif /* __KERNEL__ */ | ||
| 102 | |||
| 103 | #endif /* __ADB_H */ | 66 | #endif /* __ADB_H */ |
