1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-09 22:38:01 +00:00
Commit Graph

33 Commits

Author SHA1 Message Date
Denis Ahrens
b28dbc2e1c ztex: Harmonize low-speed FPGA configuration code with high-speed code 2012-11-26 04:15:27 +01:00
Denis Ahrens
4629553ad6 ztex: Display FPGA clock frequency with only one decimal 2012-11-26 04:15:27 +01:00
Peter Stuge
1c204dc927 libztex: Silence warning: comparison between signed and unsigned 2012-11-26 04:15:18 +01:00
Peter Stuge
972ddf74c7 libztex: Work around ZTEX USB firmware bug exposed by the FreeBSD libusb
The ZTEX USB firmware doesn't correctly support GET_DESCRIPTOR requests
for string descriptors, specifically the device always returns the full
string descriptor, even if the request wLength is shorter. The FreeBSD
implementation of libusb_get_string_descriptor_ascii() first requests 4
(four) bytes to validate the start of the string descriptor, and since
the device sends back too many bytes the USB host controller signals an
error to FreeBSD which returns the error to us.

In order to avoid this mess the libusb_get_string_descriptor_ascii()
call is replaced with the way libusb-1.0 works; which makes only a
single request to read the entire string descriptor.
2012-11-23 03:42:47 +01:00
Con Kolivas
dc7fc13e93 Convert libztex to nmsleep where possible. 2012-11-18 22:23:03 +11:00
Con Kolivas
346d09c36d Reorder libztex header include order to fix missing struct definition. 2012-09-24 14:37:23 +10:00
Con Kolivas
9e76aed66d Initialise cnt in libztex.c 2012-08-18 23:23:14 +10:00
Con Kolivas
a916be0b09 Repeating on timeout in ztex could make the code never return. 2012-08-17 16:42:14 +10:00
Con Kolivas
567751410e Offset libusb reads/writes by length written as well in ztex. 2012-08-16 22:30:06 +10:00
Con Kolivas
280539bf98 Cope with timeouts and partial reads in ztex code. 2012-08-16 22:26:19 +10:00
Luke Dashjr
d3fa59d76f Abstract generally useful FPGA code into fpgautils.c 2012-06-12 02:35:45 +00:00
nelisky
ed60e33a94 Some tweaks to reporting and logging.
- Adding fpga number to the ztex string representation
- Removing usb details from the ztex string representation
- First frequency set no longer reports a bogus old freq
2012-05-04 08:33:13 -07:00
nelisky
0080aea432 Trying harder to get 1.15y working 2012-05-03 13:24:59 -07:00
nelisky
57a72d51fb Blind implementation of multi-fpga board 1.15y. 2012-05-02 07:26:52 -07:00
nelisky
719b0c7cee HS bitstream configuration 2012-04-30 09:29:36 -07:00
nelisky
316ebc3b04 Code style cleanup 2012-04-25 04:54:51 -07:00
nelisky
6bb3c40d20 Annotating frequency changes with the changed from value 2012-04-25 04:53:35 -07:00
nelisky
5f5e1063f4 Firmware 15d4 support
Not yet using suspend and while we have fpga counting implemented it isn't being used yet, thus only the groundwork for quad board support is done, not actually working yet.
2012-04-22 08:14:54 -07:00
Con Kolivas
b97e6aa5a0 Presumably we should return false when the capability is missing in libztex_checkCapability. 2012-04-22 10:57:23 +10:00
Con Kolivas
bd46119c11 Style police on libztex.c. 2012-04-21 14:02:22 +10:00
nelisky
9ba2e21793 Some cleanup 2012-04-18 01:54:51 -07:00
nelisky
c280dd0dae Moving space indentation to tabs
For consistency with cgminer sources
2012-04-17 01:51:53 -07:00
nelisky
f9d4d92b9a Some cleanup 2012-04-17 01:25:55 -07:00
nelisky
3067a414fc leak fix 2012-04-16 11:41:17 -07:00
nelisky
57a2764eb5 Small tweaks to freq reporting 2012-04-16 11:39:36 -07:00
nelisky
a960087c0a Ztex device removal segfault fixed 2012-04-16 11:32:30 -07:00
nelisky
3197ca54e4 Better cleanup and error handling 2012-04-16 04:11:28 -07:00
nelisky
95d17e985d NULLing handle on destroy 2012-04-16 04:07:56 -07:00
nelisky
c5897683be changing the bitstream read and push strategy.
It seems that thread heap space is neither large nor consistent across OSs. Specifically on windows I couldn't get a large enough buffer for the whole bitstream in one go, so I'm reading incrementally now
2012-04-16 04:07:40 -07:00
nelisky
dc6e2f4e18 Reading actual bitfilename 2012-04-16 04:07:12 -07:00
nelisky
5bbce4c42c nonce check and error driven freq scaling
Following BTCMiner's algorithm.
2012-04-16 04:06:23 -07:00
nelisky
0902f21a04 add license headers and some cleanup 2012-04-16 04:06:11 -07:00
nelisky
99a188f94f initial commit with some support for ztex 1.15x board.
This version is just a rough draft, but it does alredy mine.

Conflicts:

	cgminer.c
	configure.ac
2012-04-16 04:01:51 -07:00