455 Commits

Author SHA1 Message Date
Pete Batard 88b71cdf23 fixed handing of HID reports when report IDs are in use
also switched to USE_HIDD_FOR_REPORTS in windows_usb.c, to be closer to Linux behaviour.
issue originally reported by Axel Rohde
r249
2010-04-12 20:14:06 +01:00
Pete Batard 9300883d04 set default messaging level to warnings in xusb r248 2010-04-08 13:30:17 +01:00
Pete Batard 0145d9f15a added missing LOG_LEVEL_DEBUG filter for toggable debug (core) 2010-04-08 13:29:19 +01:00
Pete Batard 31aff02b62 fixed "ignoring return value of 'fwrite'" warning with gcc r247 2010-04-08 12:40:54 +01:00
Pete Batard c1cea1b0fe addressed MSVC warnings prompted by previous change r246 2010-04-08 12:33:27 +01:00
Pete Batard e295c065f3 added binary dump option to xusb (-b)
also switched boolean variables to actual bool
2010-04-08 12:30:06 +01:00
Pete Batard 2ec0c2b1ff fixed HID record size computation in xusb 2010-04-08 11:48:58 +01:00
Pete Batard bb3280741d workaround for MS's HidD_GetFeature bug with report IDs
When report IDs are in use, the payload starts at buffer+0 not buffer+1
as indicated at http://msdn.microsoft.com/en-us/library/ff538910.aspx

Bug reported by Axel Rohde
2010-04-08 11:46:55 +01:00
Michael Plante d102dd2399 more default context init fixes r245 2010-04-07 11:22:31 +01:00
Martin Koegler c73ee65a51 Linux: Fix endianness handling of usbfs config descriptors (#27)
driver/usb/core/devio.c function usbdev_read translate the follwing files
to CPU endianess:

le16_to_cpus(&temp_desc.bcdUSB);
le16_to_cpus(&temp_desc.idVendor);
le16_to_cpus(&temp_desc.idProduct);
le16_to_cpus(&temp_desc.bcdDevice);

All other data is passed without any change.

libusb/os/linux_usbfs.c calls usbi_parse_descriptor with host_endian=1
for config descriptors. According to the kernel code, they must be
processed with host_endian=0, as they are not translated by the kernel.

Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
2010-04-07 11:11:28 +01:00
Pete Batard a055a56cf1 fixed default context issue introduced from previous patch
also added MSVC6 support for toggable logging
All of the above suggested by Michael Plante
r244
2010-04-07 00:10:37 +01:00
Pete Batard 767bd7a6eb [INTERNAL - NOT FOR RELEASE] added toggable debug logging to bm.sh 2010-04-06 21:13:57 +01:00
Pete Batard a46b420214 added toggable debug logging (MSVC) r243 2010-04-06 21:12:47 +01:00
Pete Batard a7a96927a3 added toggable debug logging (core) 2010-04-06 21:12:13 +01:00
Pete Batard adc0945982 fixed arglen warning from previous commit r242 2010-04-06 20:21:45 +01:00
Pete Batard b52b131343 xusb improvements (parameter handling + debug enable) r241 2010-04-06 20:20:01 +01:00
Michael Plante d908e70163 Added missing Feature Report descriptor feature
also allowed the use of LIBUSB_RECIPIENT_DEVICE in _hid_class_request
Issue reported by Axel Rohde
r240
2010-04-06 17:30:41 +01:00
Michael Plante e5a9ce5865 xusb HID test improvements (Feature Reports)
Issue reported by Axel Rohde
2010-04-06 17:26:09 +01:00
Michael Plante ca44c0df7e revert reordering of headers to simplify integration r239 2010-04-03 02:05:55 +01:00
Pete Batard a5fc611142 stdint.h fixes for MSVC6 r238 2010-04-02 18:37:21 +01:00
Pete Batard 150590c345 removed unneeded ssize_t MSVC redefinition from core r237 2010-04-02 18:07:54 +01:00
Pete Batard d4ae5cd66d use public domain inttypes.h and stdint.h (from MinGW-w64) r236 2010-04-02 14:00:56 +01:00
Michael Plante a9078469ac updated other files to match 1.0.7 release r235 2010-04-02 11:11:05 +01:00
Michael Plante 7f447549b7 updated AUTHORS 2010-04-02 11:10:42 +01:00
Pete Batard 8cb7980c01 removed unnecessary failure during init on USB API error r234 2010-04-01 12:46:25 +01:00
Pete Batard e58e19dec2 [INTERNAL - NOT FOR RELEASE] removed debug logging for bm 2010-04-01 11:35:40 +01:00
Pete Batard baa9dc7601 more explicit error codes on semaphore and DLL issues r233 2010-04-01 11:15:56 +01:00
Pete Batard f9e40cc5ba [INTERNAL - NOT FOR RELEASE] added binary snapshot batches 2010-04-01 11:15:10 +01:00
Michael Plante 66192f7b43 added dpfp_threaded binary to gitignore r232 2010-03-30 01:32:28 +01:00
Pete Batard 3b9f2d3288 commented out ENABLE_DEBUG_LOGGING for release r231 2010-03-29 16:30:23 +01:00
Pete Batard 99587b5e2d ddk_build improvements (DLL option, static lib default) r230 2010-03-29 15:41:22 +01:00
Michael Plante db8c3ff754 removed whitespaces in configure.ac 2010-03-29 12:47:35 +01:00
Pete Batard d6f6802daf small improvements to ddk_build.cmd r229 2010-03-27 19:13:27 +00:00
Pete Batard fed2c79866 configure.ac improvements (threads detection, AC_INIT) r228 2010-03-26 18:03:15 +00:00
Pete Batard 595f4c3ff1 merged latest changes from official r227 2010-03-25 19:45:18 +00:00
Pete Batard f451c11eb3 revert previous change as well as wchar_to_utf8 to static r226 2010-03-25 19:22:00 +00:00
Pete Batard fb787f4e67 enabled reuse of windows_error_str for wdi
additional cleanup
r225
2010-03-23 19:42:15 +00:00
Pete Batard ad262a68bb fixed double freeing of fds (reported by Travis Robinson) r224 2010-03-22 01:18:16 +00:00
Pete Batard ae3a15f6b6 fixed loss of pipe events (reported by Travis Robinson) r223_ 2010-03-20 23:20:52 +00:00
Pete Batard af66ec02a9 fixes potential race condition in poll, with pipe fds r222 2010-03-19 23:08:29 +00:00
Pete Batard bb58fb2754 oops - removed cancel_io emulation debug r221 2010-03-19 20:38:48 +00:00
Graeme Gill ced538fde1 further simplification of pipe and other improvements r220 2010-03-19 20:31:36 +00:00
Pete Batard e63267c4bb added MinGW-w64 support
struct timespec was not properly detected as defined and ftime generated warnings
also fixed a missing EOF CR in poll_windows.c (why do these keep disappearing?)
r219
2010-03-19 18:13:37 +00:00
Pete Batard 0758c0d9a9 fixed non duplicated overlapped event in usbi_pipe()
prevents MSVC debug from complaining about invalid handle on CloseHandle()
r218
2010-03-19 16:39:31 +00:00
Pete Batard 585cfa46f3 made sure usbi_close() is only called for the pipe (core) 2010-03-19 16:35:25 +00:00
Pete Batard 6ad309343b fixed "unable to cancel I/O" message on pipe closure (XP) r217 2010-03-19 13:39:53 +00:00
Pete Batard ee77b38b19 minor edits and changes (INSTALL_WIN, 2008 sln) 2010-03-19 13:16:56 +00:00
Pete Batard 4fb45e7328 README_MSVC.txt -> INSTALL_WIN.txt r216 2010-03-19 12:15:29 +00:00
Pete Batard e36b809e53 renamed 2005 and 2008 MSVC solution files
2005 will be used a master and the only one included in release.
2008 will be kept in the development tree only for convenience.
2010-03-19 11:43:14 +00:00
Pete Batard f569696ea9 libusb_pollfd() now returns an error on Windows r215 2010-03-18 20:17:19 +00:00