1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 06:48:05 +00:00
Commit Graph

115 Commits

Author SHA1 Message Date
Con Kolivas
f29f612182 Merge branch 'master' into hashfast 2013-10-25 14:35:56 +11:00
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
b639e68870 Merge branch 'master' into hashfast 2013-10-24 21:19:29 +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
Con Kolivas
5ee279ca00 Add atmel init sequence likely to be required on hashfast for windows to work. 2013-10-21 13:30:17 +11:00
Con Kolivas
1bafafb5d3 Enable USB buffers for hashfast on initialise and clear buffers where appropriate. 2013-10-21 11:05:38 +11:00
Con Kolivas
f5baf9f57a Merge branch 'master' into hashfast
Conflicts:
	usbutils.h
2013-10-18 19:12:13 +11:00
Con Kolivas
58dd80e459 Implement a hashfast get_header function which reads till it finds a header preamble or times out. 2013-10-13 21:39:59 +11:00
Con Kolivas
4b9eb3707b Implement hashfast send header function and add relevant usb op codes to arrays, beginning reset sequence on hashfast detection. 2013-10-13 20:28:57 +11:00
Con Kolivas
9b5c534911 Merge branch 'master' into hashfast
Conflicts:
	api.c
	configure.ac
	miner.h
	usbutils.c
	usbutils.h
2013-10-13 16:41:53 +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
f49a3c7657 Merge branch 'master' into hashfast
Conflicts:
	Makefile.am
	api.c
	cgminer.c
	configure.ac
	miner.h
	usbutils.c
	usbutils.h
2013-09-30 08:43:29 +10: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
293622cf2a Merge branch 'master' into hashfast
Conflicts:
	usbutils.c
	usbutils.h
2013-09-22 22:54:18 +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
Con Kolivas
118f9038a0 Merge branch 'master' into hashfast 2013-09-22 20:18:18 +10:00
Con Kolivas
62f6fefb12 Create a struct array of hashfast commands and their associated usb command names. 2013-09-21 08:33:11 +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
Con Kolivas
d866973d52 Add templates for USB commands likely to be used by hashfast driver. 2013-09-19 17:19:51 +10:00
Con Kolivas
78932aa1ed Provide basic structure for a hashfast driver. 2013-09-19 10:38:08 +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