1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00
Commit Graph

242 Commits

Author SHA1 Message Date
Con Kolivas
39ec9518d5 Enable the usb buffer in avalon driver. 2013-10-08 21:33:29 +11:00
ckolivas
6d7471237d Use macro expansion to iterate over all device drivers without needing to explicitly code in support in all places. Pass a hotplug bool to the detect() function to prevent opencl trying to hogplug GPUs. 2013-09-28 15:11:06 +10:00
ckolivas
741b74309e Forward declare all device drivers in miner.h avoiding the need to export them everywhere else. 2013-09-28 14:00:18 +10:00
ckolivas
8875197466 Create a macro list of drivers to enable easier addition of further drivers. 2013-09-28 10:25:48 +10:00
Kano
d3a3b3a73d usbutils allow PrefPacketSize per endpoint 2013-09-27 13:07:04 +10:00
Kano
c4b685cbe7 avalon stats use exact type 2013-09-26 20:56:24 +10:00
Xiangfu
088a340342 avalon: display the FPGA controller version on API 2013-09-22 23:29:02 +08:00
Kano
a9faec4a4b change drivers to use usb_interface() - required for multi interface change 2013-09-14 18:15:08 +10:00
Kano
87e5c76f4d BTB show C/MHz/mV for device 2013-08-23 22:52:30 +10:00
Con Kolivas
c56d44cebd Use stack data for HW error% in avalon stats. 2013-08-21 21:00:57 +10:00
Con Kolivas
8a01f5326c Add avalon HW error% to stats and only show BTB variables if avalon is a BTB. 2013-08-21 20:46:07 +10:00
Con Kolivas
eeac9d81fc Replace all references to the old n*sleep functions with the equivalent cgsleep_*s replacements. 2013-08-20 19:23:49 +10:00
Kano
96c0c31775 BTB get version from Firmware 2013-08-19 20:34:37 +10:00
Con Kolivas
09e9091dd7 Simplify cgsleep code for windows by using a typedef for cgtimer_t that resolves to clock resolution, using that internally. 2013-08-19 13:54:56 +10:00
Con Kolivas
17447ec7e2 Use the cgsleep reentrant function in avalon_send_task. 2013-08-18 11:59:02 +10:00
Con Kolivas
c988587b45 Use the reentrant cgsleep functions within the avalon_send_tasks function. 2013-08-18 11:48:42 +10:00
Con Kolivas
e784b23004 Use the reentrant cgsleep function to time sleeps on reading from avalon. 2013-08-18 11:02:05 +10:00
Con Kolivas
37ff9f8428 Add necessary time header include to avalon driver. 2013-08-18 01:33:50 +10:00
Con Kolivas
1864ed2634 Do a sleep of the full duration it would take to do all the work using clock_nanosleep in avalon_send_tasks to avoid sleep overruns before polling to see if it's ready. 2013-08-18 01:27:16 +10:00
Con Kolivas
fe7c8e8269 Merge branch 'master' of github.com:ckolivas/cgminer 2013-08-18 00:39:13 +10:00
Con Kolivas
33bb8c7958 Use the us_to_timeval helper function in the avalon driver. 2013-08-18 00:28:30 +10:00
Con Kolivas
53beae814d Use timeval_to_spec helper in avalon driver. 2013-08-18 00:21:01 +10:00
Chris Chua
26de6e64be simplifying buffer full check 2013-08-17 16:18:12 +10:00
Chris Chua
0b9474f3a2 forking bitburner write thread function 2013-08-17 15:36:47 +10:00
Chris Chua
be0d899b74 making sure original Avalon is unaffected by BitBurner changes 2013-08-16 17:00:56 +00:00
Chris Chua
2b932ccb81 changes to queueing strategy for BitBurner boards 2013-08-16 16:37:43 +00:00
Con Kolivas
1bb6dd406a Merge branch 'master' of github.com:ckolivas/cgminer 2013-08-16 13:57:54 +10:00
Con Kolivas
f3f939dd83 Do not poll in avalon_get_results without sleeping if we have finished parsing a full result. 2013-08-16 13:57:07 +10:00
kanoi
f3837916fd Merge pull request #476 from kanoi/master
avalon for timeout allow d='calculate it' and fix uninitialised
2013-08-15 17:14:16 -07:00
Con Kolivas
61cb05a963 Add c to ambient temperature display for avalon driver. 2013-08-16 09:55:45 +10:00
Kano
51aaf816ef avalon for timeout allow d='calculate it' and fix uninitialised 2013-08-15 10:57:02 +10:00
Con Kolivas
3fe8948629 Use cloned work when finding avalon results since another thread can discard the work item while it's in use. 2013-08-14 23:05:14 +10:00
Con Kolivas
dd9233f78b The write thread in avalon is only ever actually woken up by timeout so remove the write semaphore and use a simple sleep poll. 2013-08-13 17:24:01 +10:00
Con Kolivas
b2a3941ef1 Fix warning. 2013-08-13 15:36:52 +10:00
Con Kolivas
992a97a396 Interrupting reads on the avalon to start writes loses data so remove the cgsem_post in the read code. 2013-08-13 14:52:17 +10:00
Kano
b1f57595bd avalon init write_sem before use 2013-08-10 10:12:15 +10:00
Con Kolivas
f7e6701058 Fix uninit variable warnings. 2013-08-10 01:11:23 +10:00
Kano
b1a80cef15 avalon allow frequency to be set via the API 2013-08-08 00:20:19 +10:00
Kano
802737e8dd BTB voltage management via the API - and set default on startup 2013-08-07 23:47:19 +10:00
Kano
ecc9457b6b Avalon BTB allow partial work to be transferred 2013-08-07 21:25:33 +10:00
Kano
6dabdff15c avalon_cts use correct buffer 2013-08-06 11:13:48 +10:00
Chris Chua
782206ceca using usb_ident 2013-07-29 22:20:56 +10:00
Chris Chua
b8cdaea8bb forgot a return 2013-07-29 21:53:14 +10:00
Chris Chua
b0f4d55be7 changes to Avalon driver for BitBurner boards 2013-07-29 21:39:29 +10:00
Kano
ad1572f77f size check get_datestamp/get_timestamp and remove unused cgpu->init 2013-07-06 20:17:17 +10:00
Kano
385a70bea7 make all statline overflow safe 2013-07-06 19:15:59 +10:00
Con Kolivas
a011fe5182 Check for a timeout in avalon_scanhash and post to the write sem if we receive one. 2013-07-03 22:40:47 +10:00
Con Kolivas
3b2f9ccb88 Decay result count in avalon more slowly to not falsely detect idle periods as low result return rates. 2013-07-03 21:48:06 +10:00
Con Kolivas
4b4a13549e Count the number of miners idled in avalon to account more accurately for when its result return rate is too low. 2013-07-03 21:22:27 +10:00
Con Kolivas
e13c580cac Fix potential dereference when starting avalon with all new work. 2013-07-03 20:56:56 +10:00