Con Kolivas
|
0da551fac1
|
Use a linked list for all usb transfers instead of just cancellable ones.
|
2013-10-25 12:30:39 +11:00 |
|
Con Kolivas
|
2b998936fe
|
Add a usb_read_ii_timeout_cancellable wrapper
|
2013-10-25 04:13:32 +11:00 |
|
Con Kolivas
|
d2feacdfb2
|
Cancel cancellable usb transfers on work restart messages.
|
2013-10-24 22:26:13 +11:00 |
|
Con Kolivas
|
c96f096577
|
Add wrappers for usb_read_cancellable and usb_read_timeout_cancellable
|
2013-10-24 21:54:35 +11:00 |
|
Con Kolivas
|
19ec360f7c
|
Pass the cancellable option to _usb_read options to decide on whether to add usb transfers to the list of cancellable transfers.
|
2013-10-24 21:45:41 +11:00 |
|
Con Kolivas
|
81dfe60d36
|
Keep the libusb event handle polling thread active until there are no async usb transfers in progress.
|
2013-10-24 20:41:55 +11:00 |
|
Chris Chua
|
b509e84376
|
using separate identifier for bitburner fury boards
|
2013-10-11 21:14:59 +11:00 |
|
Con Kolivas
|
b5dfacef24
|
We are always dependent on libusb handling events so use the blocking libusb_handle_events in the polling thread and use a bool to know if we should continue polling.
|
2013-10-11 10:15:06 +11:00 |
|
Con Kolivas
|
7318eceef9
|
Make the devlock a cglock in usbutils and only grab the write lock for fundamental changes allowing us to send and receive transfers concurrently without lock contention.
|
2013-10-07 23:34:01 +11:00 |
|
Kano
|
51418f79e5
|
Klondike update code to current git
|
2013-10-07 23:33:11 +11:00 |
|
Con Kolivas
|
a6a9407067
|
Use asynchronous transfers for all bulk transfers, allowing us to use our own timers and cancelling transfers that take too long.
|
2013-10-07 23:31:20 +11:00 |
|
Con Kolivas
|
0a5599844f
|
Add magic init sequence required on BF1 devices to get them mining on windows.
|
2013-09-29 23:44:45 +10:00 |
|
Con Kolivas
|
ff90e6ae83
|
usbinfo.devlock is only ever write locked so convert it to a mutex
|
2013-09-29 17:44:41 +10:00 |
|
Con Kolivas
|
303a763162
|
Deuglify use of usb parse commands macro in usbutils.
|
2013-09-29 13:08:15 +10:00 |
|
Con Kolivas
|
621114c559
|
Merge branch 'master' of github.com:ckolivas/cgminer into redfury
|
2013-09-27 13:08:36 +10:00 |
|
Kano
|
d3a3b3a73d
|
usbutils allow PrefPacketSize per endpoint
|
2013-09-27 13:07:04 +10:00 |
|
Con Kolivas
|
ce16bd2ba4
|
Remove magic control sequences on open/close on BF1 and just flush the read buffers.
|
2013-09-27 12:38:02 +10:00 |
|
Con Kolivas
|
1f74b2cdc4
|
Perform interrupt read flush as per serial open on BF1 devices.
|
2013-09-27 10:50:33 +10:00 |
|
Con Kolivas
|
1a0202812a
|
Add more read_ii variants to usbutils.
|
2013-09-27 09:41:55 +10:00 |
|
Con Kolivas
|
4f6c7ee0c1
|
Name remainder of BFU usb commands used.
|
2013-09-27 09:39:26 +10:00 |
|
Con Kolivas
|
a39a9c27d6
|
Merge branch 'master' into redfury
|
2013-09-27 08:32:54 +10:00 |
|
Kano
|
b932fc0ada
|
usbutils - which_intinfo not requried
|
2013-09-26 21:04:28 +10:00 |
|
Kano
|
36d8653406
|
usbutils - interfaces must all be on one handle - ep implies the interface
|
2013-09-26 20:58:29 +10:00 |
|
Con Kolivas
|
435065c86b
|
Rename BF1 devices BF1
|
2013-09-26 07:24:09 +10:00 |
|
Con Kolivas
|
55c6e55c84
|
Name the work request and result usb commands for BF1
|
2013-09-25 16:31:37 +10:00 |
|
Con Kolivas
|
54ac35553f
|
Add commands for getting BF1 bitfury info
|
2013-09-24 22:28:56 +10:00 |
|
Con Kolivas
|
9a3684b809
|
Add magic BF1 bitfury open and close control sequences.
|
2013-09-24 22:16:31 +10:00 |
|
Con Kolivas
|
99c838965e
|
Add bf1 device information to usbutils to enable device detection.
|
2013-09-24 20:39:59 +10:00 |
|
Con Kolivas
|
48f5ff3754
|
Use macro expansion to only need to define usb enums and commands in one place.
|
2013-09-22 22:38:45 +10:00 |
|
Kano
|
0f0b0f818f
|
usbutils set_interface is no longer valid
|
2013-09-19 21:41:27 +10:00 |
|
Kano
|
166147a803
|
ubsutils interfaces much each have their own handle
|
2013-09-19 21:11:40 +10:00 |
|
Kano
|
00c2c3369a
|
usbutils kernel_detach should use the interface number
|
2013-09-17 21:42:11 +10:00 |
|
Kano
|
24858de6de
|
usbutils - allow the driver to change which_intinfo
|
2013-09-17 19:19:43 +10:00 |
|
Kano
|
67b9ee4448
|
usbutils specifically track handles and interfaces
|
2013-09-14 18:15:21 +10:00 |
|
Kano
|
08483717aa
|
usbutils - allow a device to use multiple interfaces (and better var names)
|
2013-09-14 18:14:48 +10:00 |
|
Con Kolivas
|
deb7be72c6
|
Use the reentrant cgsleep functions for usecps in usbutils.
|
2013-08-20 21:08:32 +10:00 |
|
Kano
|
96c0c31775
|
BTB get version from Firmware
|
2013-08-19 20:34:37 +10:00 |
|
Chris Chua
|
b0f4d55be7
|
changes to Avalon driver for BitBurner boards
|
2013-07-29 21:39:29 +10:00 |
|
Kano
|
759ce6e7d2
|
usb timeouts - min/max also
|
2013-07-21 06:43:26 +10:00 |
|
Kano
|
2dffc96e3c
|
log USB timeouts in API stats
|
2013-07-20 12:56:57 +10:00 |
|
Kano
|
4cb7cfb226
|
usbutils use a heap buffer for bulk read rather than stack
|
2013-07-18 09:59:10 +10:00 |
|
Kano
|
2beb30f13d
|
bflsc get volts stats needs its own GETVOLTS
|
2013-06-28 22:55:55 +10:00 |
|
Kano
|
9ecef180d1
|
usbutils/icarus include more locking to usbdev access
|
2013-06-26 12:53:05 +10:00 |
|
Kano
|
fc89f170a3
|
usbutils add delay API stats
|
2013-06-25 22:23:06 +10:00 |
|
Kano
|
527c6ee255
|
usbutils optional cps IO control - but not enabled
|
2013-06-25 21:35:21 +10:00 |
|
Con Kolivas
|
0cd2c5c3c8
|
Use the info timeout for read_nl in getidentify bflsc.
|
2013-06-23 10:12:44 +10:00 |
|
Con Kolivas
|
9246bbc603
|
Add a usb_read_nl_timeout macro.
|
2013-06-23 10:11:22 +10:00 |
|
Con Kolivas
|
4e155fd624
|
Hard code the preferred packet size for AMU, BLT and ICA.
|
2013-06-22 22:33:10 +10:00 |
|
Con Kolivas
|
abdf7510c9
|
Reinstate the maxPacketSize determined by the end descriptor but allow the driver to override it.
|
2013-06-21 17:36:20 +10:00 |
|
Con Kolivas
|
f4d74116d3
|
Limit USB transfers to the max size reported by the descriptors.
|
2013-06-19 13:18:15 +10:00 |
|