diff options
| author | 2013-09-17 11:30:01 +0200 | |
|---|---|---|
| committer | 2013-09-17 11:30:01 +0200 | |
| commit | f4758e8b15cd30fe3f7f18de42e2ea20bc5696f0 (patch) | |
| tree | 671e85e639b689b0b888a0f51c7dd5e15d408930 /daemon/usb.h | |
| parent | 10939f3ad5755d1117f20df2b97c0cbbd83bbcbe (diff) | |
| download | usbmuxd-f4758e8b15cd30fe3f7f18de42e2ea20bc5696f0.tar.gz usbmuxd-f4758e8b15cd30fe3f7f18de42e2ea20bc5696f0.tar.bz2 | |
remove libusbmuxd sources and adapt source tree to use autotools
libusbmuxd has been split off and is now managed in a separate repository.
By the time of this commit, the repository is:
git clone http://git.sukimashita.com/libusbmuxd.git
Diffstat (limited to 'daemon/usb.h')
| -rw-r--r-- | daemon/usb.h | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/daemon/usb.h b/daemon/usb.h deleted file mode 100644 index 6fe7ee6..0000000 --- a/daemon/usb.h +++ /dev/null | |||
| @@ -1,66 +0,0 @@ | |||
| 1 | /* | ||
| 2 | usbmuxd - iPhone/iPod Touch USB multiplex server daemon | ||
| 3 | |||
| 4 | Copyright (C) 2009 Hector Martin "marcan" <hector@marcansoft.com> | ||
| 5 | Copyright (C) 2009 Nikias Bassen <nikias@gmx.li> | ||
| 6 | Copyright (C) 2009 Martin Szulecki <opensuse@sukimashita.com> | ||
| 7 | |||
| 8 | This program is free software; you can redistribute it and/or modify | ||
| 9 | it under the terms of the GNU General Public License as published by | ||
| 10 | the Free Software Foundation, either version 2 or version 3. | ||
| 11 | |||
| 12 | This program is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with this program; if not, write to the Free Software | ||
| 19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 20 | |||
| 21 | */ | ||
| 22 | |||
| 23 | #ifndef __USB_H__ | ||
| 24 | #define __USB_H__ | ||
| 25 | |||
| 26 | #include <stdint.h> | ||
| 27 | #include "utils.h" | ||
| 28 | |||
| 29 | #define INTERFACE_CLASS 255 | ||
| 30 | #define INTERFACE_SUBCLASS 254 | ||
| 31 | #define INTERFACE_PROTOCOL 2 | ||
| 32 | |||
| 33 | // libusb fragments packets larger than this (usbfs limitation) | ||
| 34 | // on input, this creates race conditions and other issues | ||
| 35 | #define USB_MRU 16384 | ||
| 36 | |||
| 37 | // max transmission packet size | ||
| 38 | // libusb fragments these too, but doesn't send ZLPs so we're safe | ||
| 39 | // but we need to send a ZLP ourselves at the end (see usb-linux.c) | ||
| 40 | // we're using 3 * 16384 to optimize for the fragmentation | ||
| 41 | // this results in three URBs per full transfer, 32 USB packets each | ||
| 42 | // if there are ZLP issues this should make them show up easily too | ||
| 43 | #define USB_MTU (3 * 16384) | ||
| 44 | |||
| 45 | #define USB_PACKET_SIZE 512 | ||
| 46 | |||
| 47 | #define VID_APPLE 0x5ac | ||
| 48 | #define PID_RANGE_LOW 0x1290 | ||
| 49 | #define PID_RANGE_MAX 0x12af | ||
| 50 | |||
| 51 | struct usb_device; | ||
| 52 | |||
| 53 | int usb_init(void); | ||
| 54 | void usb_shutdown(void); | ||
| 55 | const char *usb_get_serial(struct usb_device *dev); | ||
| 56 | uint32_t usb_get_location(struct usb_device *dev); | ||
| 57 | uint16_t usb_get_pid(struct usb_device *dev); | ||
| 58 | void usb_get_fds(struct fdlist *list); | ||
| 59 | int usb_get_timeout(void); | ||
| 60 | int usb_send(struct usb_device *dev, const unsigned char *buf, int length); | ||
| 61 | int usb_discover(void); | ||
| 62 | void usb_autodiscover(int enable); | ||
| 63 | int usb_process(void); | ||
| 64 | int usb_process_timeout(int msec); | ||
| 65 | |||
| 66 | #endif | ||
