driver-bitfury.c


Log

Author Commit Date CI Message
Con Kolivas c76647f2 2014-02-23T16:45:04 Use the share_work_tdiff function in the driver watchdogs.
Con Kolivas 257fe00a 2014-02-18T22:19:45 Move driver statline padding to cgminer.c, expanding width of maximum displayable statistics and window width to add more info.
Con Kolivas fc3f1100 2014-02-15T08:49:41 Detect non-responsive bitfury devices and try a usb reset on them before killing their instances off after 2 minutes of no activity.
Con Kolivas 5cda70e7 2014-02-14T08:09:17 Update various copyright dates
Con Kolivas bac9d6f3 2014-02-13T21:13:20 Reuse the cgpu temp entry for avalon and bitfury devices, changing avalon to a damped value.
Con Kolivas d73ac707 2014-02-08T21:04:18 Remove bitfury devices from the usb list on shutdown in case they have stopped responding but have not had a fatal usb error.
Con Kolivas b535bc08 2014-01-26T22:23:31 Set info work to null after it is freed in nf1 after a restart to prevent double free later.
Con Kolivas 8d7d764f 2014-01-23T23:19:19 Change the default clockspeed bits on nanofury devices to 50 and add a command line option to allow it to be changed.
Con Kolivas 22a855c1 2014-01-09T16:06:46 Set the mcp2210 transfer setting only when it changes.
Con Kolivas a7f89391 2014-01-09T15:49:12 Only perform spi reset on init, not with each transaction.
Con Kolivas 8c603e47 2014-01-09T15:33:24 Remove spi_detect_bitfury at nanofury startup and fix incorrect refresh time.
Con Kolivas e8aca49b 2014-01-09T15:26:34 Use a simple serialised work model for nanofury
Con Kolivas e97aa32c 2014-01-09T15:20:40 Use bitfury_checkresults to avoid hashing results twice in nanofury.
Con Kolivas 3cb878d3 2014-01-09T14:36:55 Export bitfury_checkresults in libbitfury
Con Kolivas 27f64f31 2014-01-09T14:34:56 Pass extra parameters for later use in libbitfury_sendHashData
Con Kolivas b98f699b 2014-01-09T14:19:46 Avoid double handling bswap of the nonce value in nanofury
Con Kolivas 6ccf2fe7 2014-01-09T12:49:33 Age work in nf1_scan to avoid risk of losing a work item and leaking memory.
Con Kolivas 880bd681 2014-01-09T12:27:14 Default bitrate on nanofury should be 200kHz
Con Kolivas 8de7af30 2014-01-09T08:20:26 Only update info work in nanofury driver when it's empty.
Con Kolivas 8f97b209 2014-01-06T17:31:21 Cancel any spi transfers on nf1 close
Con Kolivas 8304338c 2014-01-06T17:19:23 Add bitfury detection loop to nanofury startup
Con Kolivas cf08b96a 2014-01-06T17:03:23 Move spi init code to libbitfury
Con Kolivas 639e7694 2014-01-06T13:02:25 Remove inappropriate extra config reg in nanofury setup.
Con Kolivas 803a18da 2014-01-06T09:22:07 Set value of gpio pins to low on closing nanofury.
Con Kolivas fc673c9f 2014-01-06T09:18:38 Fix more init sequence for nanofury.
Con Kolivas 3d260657 2014-01-05T23:26:13 Add basic initialisation for nf1 devices
Con Kolivas 3105b3ae 2014-01-05T23:16:39 Add basic nf1_scan function.
Con Kolivas bed6a9c4 2014-01-05T23:00:45 Basic import of libbitfury functions from nanofury branch
Con Kolivas c31e75b7 2014-01-05T22:41:10 Import functions from nanofury fork for libbitfury
Con Kolivas aa1c5daa 2014-01-05T18:13:05 Get pin value after an nf1 spi reset.
Con Kolivas 05b3e2d0 2014-01-05T17:57:52 Make sure what we send in the buffer doesn't change during spi reset for nanofury
Con Kolivas 7e4f6866 2014-01-05T17:05:11 Remove all standalone gpio setting change functions in mcp2210 and just use the one global setting function.
Con Kolivas c049387f 2014-01-05T16:55:05 Set gpio values in the one function with all values for nanofury.
Con Kolivas 763612af 2014-01-05T09:12:19 Set all pin designations and directions in one call for nanofury and don't bother storing their values in the info struct.
Con Kolivas 1601f660 2014-01-05T08:53:09 Set all nanofury pin designations in one call
Con Kolivas 32998a15 2014-01-05T08:45:46 Store the spi settings in a struct for nanofury devices.
Con Kolivas 2a68889c 2014-01-04T21:51:00 Check that mcp2210 spi settings have taken and check the value of the pin during nanofury setup.
Con Kolivas 8e4de073 2014-01-04T21:26:57 Don't set GPIO pin designations after initial setting in nanofury since the direction and values will be changed.
Con Kolivas a01fbc30 2014-01-04T20:35:59 Move the set gpio output function to a generic mcp2210 version from nanofury which also sets the pin to gpio.
Con Kolivas 2d4adfa5 2014-01-04T20:10:00 Implement a nanofury txrx with a larger buffer and cycling over data too large to send.
Con Kolivas 8417d3f8 2014-01-04T18:36:39 Implement magic spi reset sequence for nanofury.
Con Kolivas 2116d9c0 2014-01-04T18:17:42 Add more spi magic to the nanofury init sequence.
Con Kolivas b158a123 2014-01-04T16:55:53 Add lots of magic spi initialisation to nanofury.
Con Kolivas 2486b9ce 2014-01-04T14:29:11 Export reused components of bitfury management into a libbitfury and use for bab and bitfury drivers.
Con Kolivas 3865849c 2014-01-04T13:53:21 More init sequence for nanofury and implement a close function that sets all pins to input.
Con Kolivas f5526b14 2014-01-04T11:12:54 Change spimode and send more data in nanofury setup.
Con Kolivas d2043c1f 2014-01-04T11:05:08 Add basic setup comms to nanofury.
Con Kolivas d84155c9 2014-01-04T10:19:34 Set the initial spi settings for nanofury driver.
Con Kolivas 6b532de0 2014-01-04T09:38:05 Cancel any SPI transfers in progress in nanofury after initial setup.
Con Kolivas 781871bd 2014-01-04T09:28:18 Set GPIO LED and power to high in nanofury driver.
Con Kolivas 8f4ec3af 2014-01-04T09:25:30 Implement initial part of nanofury init sequence for GPIO pin settings and add output debugging of set values.
Con Kolivas bd6b1149 2014-01-03T11:14:08 Include mcp header for bitfury and fix extra params in macro.
Con Kolivas ea21e642 2014-01-02T01:15:44 Don't keep resetting BXF clockspeed to default.
Con Kolivas 375b7da4 2013-12-25T09:54:29 Always send the bxf device a clockspeed after parsing the temperature in case the device has changed the clockspeed itself without notification.
Con Kolivas 57a035d0 2013-12-22T22:47:17 Store per-chip submit information for bxf device and show them in the API.
Con Kolivas afad54b4 2013-12-22T22:40:33 Check for removed bxf devices before trying to update work or send messages.
Con Kolivas 7fc87129 2013-12-17T23:51:11 Implement command line control of the bxf target temperature.
Con Kolivas b2091900 2013-12-17T23:25:43 Add a simple PID-like controller to bi*fury devices to dynamically alter the clock setting to maintain a nominal target temperature set to 82 degrees.
Con Kolivas 99417ad3 2013-12-17T22:13:03 Add data to BXF API output.
Con Kolivas 7c7a324f 2013-12-17T21:53:10 Add support for newer protocol bi*fury commands job, clock and hwerror, setting clock to default 54 value, turning parsing into a compact macro.
Con Kolivas be51dcfd 2013-11-25T09:55:41 Use correct padding for bxf temperature display.
Con Kolivas ed9a89ef 2013-11-23T09:59:59 Set the bitfury device start times from when we first get valid work.
Con Kolivas 5aac6b74 2013-11-22T23:40:22 Fix stack corruption of zeroing too much in bf1 driver.
Con Kolivas 0e60ca30 2013-11-22T23:21:44 Make usb_detect return the cgpu associated with it to check if it succeeds to decide on whether to increment the device count or not.
Con Kolivas 107b2f73 2013-11-22T21:13:47 Set tv work start time for bxf driver.
Con Kolivas e14b3ea3 2013-11-22T20:50:25 Age the bxf work items over 90 seconds, not the bf1 work items.
Con Kolivas 5df2ae56 2013-11-22T10:40:23 Leave room for temperatures above 100 degrees and pad consistently for bxf statline.
Con Kolivas eae0e76d 2013-11-22T00:03:11 Increase work ageing time to 90 seconds for bxf driver to account for firmware changes.
Con Kolivas 698d677f 2013-11-20T23:09:51 Use the age_queued_work function in the bitfury driver.
Con Kolivas 68d54030 2013-11-16T11:29:18 Add bxf data to api output.
Con Kolivas b9bc5ad2 2013-11-16T10:12:15 Send extra work regularly to the bxf device and parse the needwork command by sending the amount of work it requests.
Con Kolivas 3b3410e3 2013-11-16T09:52:23 Allow messages to have arbitrary offsets in the bxf parser in case we have lingering buffered data.
Con Kolivas 0677ddfe 2013-11-16T09:44:28 Send the maxroll command to the bxf driver and store the value to see if we need to update it.
Con Kolivas faecdca4 2013-11-16T09:15:16 Add sending of flush command to bxf on flush_work
Con Kolivas 667bb493 2013-11-16T09:08:04 Add flush and version commands to bxf start up, flush buffer and try to parse version response string.
Con Kolivas ee4d5a64 2013-11-16T08:36:27 Abstract out bxf recv message.
Con Kolivas e051e1bd 2013-11-16T08:14:38 Abstract out bxf send message to allow us to easily add extra commands.
Con Kolivas dcd6c688 2013-11-15T23:20:14 One more space in bitfury statline.
Con Kolivas 8dfcf1bf 2013-11-15T23:18:15 Expand size of bitfury statline
Con Kolivas 12a2ded6 2013-11-15T22:57:41 Various driver fixes for bitfury devices, including a flag from when first valid work appears.
Con Kolivas a51bde3e 2013-11-15T22:35:10 Look up work results in bxf driver from correct variable.
Con Kolivas 0508610f 2013-11-15T17:43:51 Correct incorrect error code in bxf driver for usb writes and add debugging.
Con Kolivas 3aac6ebd 2013-11-14T15:50:56 Implement a statline showing temperature for bxf
Con Kolivas 5253eb7e 2013-11-14T15:44:21 Add api data for bxf device, sharing the hashrate function with bf1.
Con Kolivas 25dd5fb0 2013-11-14T15:32:49 Count no matching work as a hw error on bxf
Con Kolivas 770cd8e6 2013-11-14T14:13:07 Work id should be hexadecimal in bxf messages.
Con Kolivas e29e84ae 2013-11-14T14:04:54 Add unrecognised string debugging to bxf driver.
Con Kolivas b679337c 2013-11-14T13:57:09 Implement the main scanloop for bxf, trying to prevent it from ntime rolling work if the work protocol does not allow it.
Con Kolivas 8a710a68 2013-11-14T13:21:58 Parse bxf work submits fully, submitting the results.
Con Kolivas 6f8fbd39 2013-11-14T13:01:54 Implement a skeleton parse bxf submit function.
Con Kolivas 5e147c69 2013-11-14T12:49:59 Use the bxf read thread to set the device target and send its first work item.
Con Kolivas 418664ad 2013-11-14T12:39:15 Implement a bxf send work function and set update and restart functions to sending new work since that's the equivalent for that device.
Con Kolivas 977943b3 2013-11-14T12:08:48 Add temperature parsing to bxf driver
Con Kolivas c1c834a6 2013-11-14T11:58:21 Create and destroy a basic bxf read thread.
Con Kolivas 18d1a9d7 2013-11-14T11:35:47 Remove the buffer from bitfury info since it is only used on one pass in the bf1 device.
Con Kolivas 28d93514 2013-11-14T11:33:15 Add a rudimentary bxf detect one function.
Con Kolivas 174b9fd6 2013-11-14T11:27:43 Rename all bf1 specific functions in the bitfury driver, using a switch to choose correct function.
Con Kolivas c2275a81 2013-11-14T11:15:18 Rename bitfury_getinfo to bf1_getinfo since it's unique to bf1 devices.
Con Kolivas 1d0d9fba 2013-11-14T11:11:01 Separate out the bf1 reset from bitfury reset.
Con Kolivas e7758fcd 2013-11-14T11:05:24 Store the bitfury identity in the info struct.