summaryrefslogtreecommitdiffstats
path: root/daemon/usb.h
diff options
context:
space:
mode:
authorGravatar Hector Martin2010-05-18 18:51:20 +0200
committerGravatar Hector Martin2010-05-18 18:51:20 +0200
commitaacdff7345e265b593780115912511cd3724f22f (patch)
treee2a71892b46171a0c5c0a2112d9c88211d454d65 /daemon/usb.h
parented5a1f49812a29b6ad806778155890157981f252 (diff)
downloadusbmuxd-aacdff7345e265b593780115912511cd3724f22f.tar.gz
usbmuxd-aacdff7345e265b593780115912511cd3724f22f.tar.bz2
Parse out interface/endpoint descriptors instead of hardcoding them
This should make usbmuxd work with devices in recovery mode
Diffstat (limited to 'daemon/usb.h')
-rw-r--r--daemon/usb.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/daemon/usb.h b/daemon/usb.h
index 1a58b26..6e507ae 100644
--- a/daemon/usb.h
+++ b/daemon/usb.h
@@ -26,8 +26,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26#include <stdint.h> 26#include <stdint.h>
27#include "utils.h" 27#include "utils.h"
28 28
29#define BULK_IN 0x85 29#define INTERFACE_CLASS 255
30#define BULK_OUT 0x04 30#define INTERFACE_SUBCLASS 254
31#define INTERFACE_PROTOCOL 2
31 32
32// libusb fragments packets larger than this (usbfs limitation) 33// libusb fragments packets larger than this (usbfs limitation)
33// on input, this creates race conditions and other issues 34// on input, this creates race conditions and other issues
@@ -47,8 +48,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
47#define PID_RANGE_LOW 0x1290 48#define PID_RANGE_LOW 0x1290
48#define PID_RANGE_MAX 0x129a 49#define PID_RANGE_MAX 0x129a
49 50
50#define USB_INTERFACE 1
51
52struct usb_device; 51struct usb_device;
53 52
54int usb_init(void); 53int usb_init(void);