aboutsummaryrefslogtreecommitdiffstats
path: root/adb/adb.h
diff options
context:
space:
mode:
authorBenoit Goby <benoitgoby@google.com>2012-06-06 15:51:07 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-06-06 15:51:07 -0700
commitc29569c5d3c1358983915596267e85e85c7f82e2 (patch)
tree25a0ed84946d742aaa36a23a540f13a064abf6a4 /adb/adb.h
parent845f106a93d5f8ed710c80293d22d23e1b17ed3c (diff)
parentfd96db17b7f07eb6615af01fd1908b74383bf04b (diff)
downloadsystem_core-c29569c5d3c1358983915596267e85e85c7f82e2.tar.gz
system_core-c29569c5d3c1358983915596267e85e85c7f82e2.tar.bz2
system_core-c29569c5d3c1358983915596267e85e85c7f82e2.zip
Merge "FunctionFS: initial implementation"
Diffstat (limited to 'adb/adb.h')
-rw-r--r--adb/adb.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/adb/adb.h b/adb/adb.h
index 622674a6..df888967 100644
--- a/adb/adb.h
+++ b/adb/adb.h
@@ -464,6 +464,17 @@ extern int SHELL_EXIT_NOTIFY_FD;
#define CHUNK_SIZE (64*1024)
+#if !ADB_HOST
+#define USB_ADB_PATH "/dev/android_adb"
+
+#define USB_FFS_ADB_PATH "/dev/usb-ffs/adb/"
+#define USB_FFS_ADB_EP(x) USB_FFS_ADB_PATH#x
+
+#define USB_FFS_ADB_EP0 USB_FFS_ADB_EP(ep0)
+#define USB_FFS_ADB_OUT USB_FFS_ADB_EP(ep1)
+#define USB_FFS_ADB_IN USB_FFS_ADB_EP(ep2)
+#endif
+
int sendfailmsg(int fd, const char *reason);
int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s);