From aacdff7345e265b593780115912511cd3724f22f Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Tue, 18 May 2010 18:51:20 +0200 Subject: Parse out interface/endpoint descriptors instead of hardcoding them This should make usbmuxd work with devices in recovery mode --- daemon/usb.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'daemon/usb.h') 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 #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); -- cgit v1.1-32-gdbae