343 Commits

Author SHA1 Message Date
Pete Batard 2e83188d9c added detection of uninitialized devices on open r166 2010-02-19 17:16:41 +00:00
Pete Batard 3a42fe7e65 fixed cygwin warning r165 2010-02-19 01:34:07 +00:00
Pete Batard 87b577fda7 fixed improper parent when reusing device + cosmetics fixes r164 2010-02-18 21:07:19 +00:00
Pete Batard 5276f2ab66 revert r102/f0d352: handle_timeouts() CORE modification r163 2010-02-18 00:55:07 +00:00
Pete Batard 60412cb33f xusb improvements (feature reports) r162 2010-02-18 00:22:50 +00:00
Pete Batard bd03584493 ERROR_SEM_TIMEOUT + FORCE_INSTANT_TIMEOUTS for cancellation
added ERROR_SEM_TIMEOUT case in windows_transfer_callback,
FORCE_INSTANT_TIMEOUTS compilation option + uint8_t fix for ddk_build
r161
2010-02-18 00:14:23 +00:00
Pete Batard c01d1df73c fixed HID feature reports r160 2010-02-17 23:25:12 +00:00
Pete Batard 857f2f9267 improved windows_set_configuration r159 2010-02-17 20:36:27 +00:00
Pete Batard 72cd345907 removed unofficial versioning from comments r158 2010-02-17 17:56:19 +00:00
Pete Batard 5427675261 fixed aggressive transfer cancellation r157 2010-02-17 16:28:52 +00:00
Pete Batard 00d87387ec revert back to call copy_transfer_data always in callback
previous change there was unnecessary and actually messed up control transfers
r156
2010-02-16 22:20:17 +00:00
Pete Batard 416c5d90af fixed HID interrupt transfers + HID cosmetics improvements r155 2010-02-16 16:26:43 +00:00
Pete Batard 3efb8b6f75 fixed libusb_strerror to be in line with core patch 6/7 r154 2010-02-15 21:08:00 +00:00
Michael Plante 03e9371a46 fixed signed/unsigned comparison: int->size_t r153 2010-02-12 01:21:46 +00:00
Pete Batard fd30aa2f72 moved real-time functionality out of timer thread (Michael Plante)
also cleanup single-index arrays, remove unnecessary goto and
additional cleanup
r152
2010-02-12 00:56:16 +00:00
Michael Plante 8c605c7779 fix 2 timer-related bugs (unlikely)
* failed to check CreateSemaphore()
* index out of bounds on timer_index
r151
2010-02-12 00:06:50 +00:00
Pete Batard 1cda5082f8 added detection of HID report IDs for interrupt transfers
processing of HID report IDs in hid_open using HidP_GetValueCaps
added corresponding DLL call
r150
2010-02-11 21:02:54 +00:00
Pete Batard 9a8b0b9559 changed HID_USE_LAST_REPORTS to USE_HIDD_FOR_REPORTS
clarification for the compilation option above
r149
2010-02-11 19:29:15 +00:00
Pete Batard 6ba1e6cb46 fixed bad HID input report data when using control
removes the use of transfer->buffer as dest in hid_copy_transfer_data
uses private hid_dest copy from windows_transfer_priv instead
r148
2010-02-11 00:01:32 +00:00
Pete Batard 06f92a48c5 final fix for composite HID mouse and keyboard detection
introduces the use of multiple driver names in the USB API backends
r147
2010-02-10 23:06:54 +00:00
Pete Batard 36d76382a0 fixed memory leak dues to HID collections in set_composite_device r146 2010-02-10 00:51:54 +00:00
Pete Batard 36e4414a35 r145: fixed memory leak in _libusb_poll r145 2010-02-09 21:13:16 +00:00
Pete Batard 15e2be512b r144: preliminary fix for composite HID mouse and keyboard detection r144 2010-02-08 20:07:15 +00:00
Pete Batard fe8e7eff48 r143: fixed a couple of issues with HID r143 2010-02-08 01:52:00 +00:00
Pete Batard 54890a6104 r142: - fixed claiming of interfaces >0 for non-composite (Dave C.) + better autoclaim handling
- moved compilation options from config_msvc.h to windows_usb.c
- processed remaining TODOs
r142
2010-02-07 01:31:52 +00:00
Pete Batard dbd8c6a375 r141: HID I/O Overhaul:
- discard report ID from buffer (new hid_buffer in transfer_priv & new copy_transfer_data backend call)
- overflow detection
- extended HID xusb test
Also:
- fixed ill placed memset on composite device siblings detection
r141
2010-02-06 14:56:34 +00:00
Pete Batard e88c82603e r140: further simplification of the core include sections r140 2010-02-03 18:47:25 +00:00
Pete Batard 7bad644425 r139: improved CancelIoEx vs CancelIo detection(Michael Plante, Orin Eman) r139 2010-02-03 18:29:57 +00:00
Pete Batard f2f8df520b r138b: oops - don't leave debug code in commits! r138b 2010-02-03 01:12:45 +00:00
Pete Batard 3138936c41 r138: additional DDK/SDK versions checks for cancel_io inline (MSVC7+ users only) r138 2010-02-03 01:04:41 +00:00
Pete Batard 05ac09d594 r137: compat layer TODOs and small fixes:
- use CancelIoEx when available
- handle pending Overlapped / extra data
- move windows version to compat
r137
2010-02-02 23:56:27 +00:00
Michael Plante b1b43b6047 r136: updated .gitignore: added doxygen.cfg and xusb binary r136 2010-02-02 22:48:26 +00:00
Michael Plante 983297cb17 r135: stopped modifying errno if succeeded. r135 2010-02-02 22:47:35 +00:00
Michael Plante 5d936090c4 r134: fixed some silly /W3 warnings in MSVC r134 2010-02-02 22:46:54 +00:00
Michael Plante 44fe2705d4 r133: fixed missing LONG_PTR reference using intptr_t instead since that's in one of our headers r133 2010-02-02 22:46:27 +00:00
Pete Batard 3bb808f398 r132: harmonized compatibility layer function names (_libusb prefix always, rather than _for_poll suffix)
additional minor xusb improvements.
r132
2010-02-02 19:42:27 +00:00
Pete Batard c8b4ec4c6d r131: fixed various /W4 warnings for MSVC (core files) r131 2010-02-01 19:26:13 +00:00
Pete Batard 8a35c05b5a r130: fixed *size in HidD_GetPhysicalDescriptor and fixed various /W4 warnings for MSVC (windows files) 2010-02-01 19:25:17 +00:00
Pete Batard 3e258645f4 r129: xusb fixes for Mass Storage test (Alan Stern):
- forces command length to 31
- null termination of vid/pid/rev strings
- big endian detection
2010-01-31 03:36:45 +00:00
Pete Batard a2773d1edf r128: additional cygwin fixes for concurrency 2010-01-30 23:27:19 +00:00
Pete Batard 76eef888a1 r127: merged concurrency branch with master (native improved concurrency handling for Windows files) [c119->c137]:
c119: concurrency handling: - use semaphore in init/exit (Orin Eman) - use separate thread for timer and remove the need for affinity restoration - minor code readability improvements (moved GUIDs to .h)
c120: removed unneeded disabling of APIs in winusb_exit & hid_exit
c121: changed CreateThread to _beginthreadex, so CRT works properly when mem is low (Michael Plante)
c122: made name of named-semaphore unique across the system per-process (Michael Plante)
c123: allow timer thread to quit gracefully, and cleanup many of the handles (Michael Plante)
c124: fixed concurrent_usage if init fails (Michael Plante)
c125: drop PulseEvent in timer thread and use semaphore for response (Orin Eman).
c126: removed pthread dependency in windows_compat.c
c127: fixed missing reset of timer_request when event has already been handled
c128: additional fixes for timer thread: - closed timer_mutex handles, and fixed volatile warning regarding interlocked ops (Michael Plante) - missing ResetEvent and possible missing request handling fix (Orin Eman) - additional fixes
c129: use of spinlocks and critical sections in windows_compat.c for mutexes (Orin Eman, Michael Plante)
c130: fixed missing spinlock in exit_polling
c131: made spinlock static, changed to LONG, and casted off volatile in InterlockedExchange calls (Michael Plante)
c132: additional security checks when entering critical sections in windows_compat.c
c133: brought latest master commits to the concurrency branch [r119 -> r122]
c134: fixed unfortunate inverted comparison introduced in c132
c135: fixed timer thread warnings with MinGW
c136: brought latest master commits to the concurrency branch [r123 -> r126]
c137: removed pthread.h and sched.h includes from windows_usb.c
2010-01-30 21:45:15 +00:00
Pete Batard c1f00180ff r126: fixed sscanf_s test for MSVC6 users 2010-01-30 21:00:23 +00:00
Pete Batard f95401139f r125: oops - fixed check for OS_WINDOWS in previous patch 2010-01-30 14:50:44 +00:00
Pete Batard bf4f54160c r124: removes #error on previous commit and fixes thing ourselves 2010-01-30 01:40:41 +00:00
Pete Batard afe70cedf7 r123: reverted the use of usb_interface in core and forced interface to be undefined always on Windows 2010-01-29 20:04:35 +00:00
Pete Batard 47c83183c0 r122: fixed poll conflict on cygwin (all compat functions renamed to _libusb_####)
- fixed sscanf_s undefined for non MS compilers
- fixed cygiwn warnings in windows_usb.c
2010-01-28 23:18:52 +00:00
Pete Batard 37b685c355 r121: some more small improvements for xusb.c (vid:pid as cmdline parameter) 2010-01-28 15:56:04 +00:00
Pete Batard c69d51d779 r120: vc2005 express fixes (Orin Eman) 2010-01-28 13:32:38 +00:00
Pete Batard 388620e21f r119: xusb improvements for mass storage (Alan Stern) 2010-01-27 21:23:31 +00:00
Pete Batard fa2f3231db r118: more readable xusb output and added automated endpoint generation for Mass Storage 2010-01-26 15:32:57 +00:00