diff options
author | Hector Martin | 2010-05-18 18:51:20 +0200 |
---|---|---|
committer | Hector Martin | 2010-05-18 18:51:20 +0200 |
commit | aacdff7345e265b593780115912511cd3724f22f (patch) | |
tree | e2a71892b46171a0c5c0a2112d9c88211d454d65 /daemon/usb.h | |
parent | ed5a1f49812a29b6ad806778155890157981f252 (diff) | |
download | usbmuxd-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.h | 7 |
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 #include <stdint.h> #include "utils.h" -#define BULK_IN 0x85 -#define BULK_OUT 0x04 +#define INTERFACE_CLASS 255 +#define INTERFACE_SUBCLASS 254 +#define INTERFACE_PROTOCOL 2 // libusb fragments packets larger than this (usbfs limitation) // 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 #define PID_RANGE_LOW 0x1290 #define PID_RANGE_MAX 0x129a -#define USB_INTERFACE 1 - struct usb_device; int usb_init(void); |