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

117 Commits

Author SHA1 Message Date
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
Kano
d2cb412931 record and report USB pipe errors via API stats 2013-06-16 21:58:01 +10:00
Kano
84ffcbc51b Use mining start time for device MH/U calculations 2013-06-14 01:09:50 +10:00
Kano
7d35c6921e ubsutils lock all access to nodev and cgusb 2013-06-10 18:52:18 +10:00
Kano
9287ee90f6 USB control creation and free of cgpu 2013-06-10 15:22:37 +10:00
Con Kolivas
630e7d7658 Set BFLSC fan speed coarsely to keep it under 60 or auto as per specs saying it tries to stay below 60. 2013-06-09 21:33:20 +10:00
Con Kolivas
fd41eb4ef6 Limit usbutils LATENCY_STD to 32ms to keep transfers under 512 bytes. 2013-06-09 19:03:56 +10:00
Con Kolivas
7fc9666429 Add a usb_read_ok_timeout wrapper to cope with slow init'ing devices. 2013-06-09 17:15:48 +10:00
Kano
8478ee4436 AMU usbstatus correct name from enable UART 2013-06-07 07:02:55 +10:00
Kano
a7425c6c1b Icarus AMU enable the UART 2013-06-07 01:52:51 +10:00
Kano
f366d53f3c add usb_ftdi_set_latency 2013-06-05 01:37:16 +10:00
Kano
4368a04fce usbutils optional read buffering 2013-06-05 01:07:16 +10:00
Kano
1c64f3b621 usb set FTDI latency higher to minimise status bytes 2013-06-04 13:17:57 +10:00
Con Kolivas
eec1a86af0 Update copyrights of modified files. 2013-05-30 22:53:07 +10:00
Kano
74d7f55648 usbutils automatically track IO errors 2013-05-30 16:00:41 +10:00
Con Kolivas
0177b41010 Use the USB wrappers for avalon, telling usbutils that we want the raw data. 2013-05-29 00:33:56 +10:00
Con Kolivas
876e7e5893 Merge branch 'icarus-dev' into usbdev
Conflicts:
	usbutils.h
2013-05-29 00:01:54 +10:00
Kano
05cbbd99bb CMR handle baud options 2013-05-28 23:56:30 +10:00
Kano
df8566a78c usb/ica add more (incomplete) CMR settings 2013-05-28 22:44:03 +10:00
Kano
2f94ec8025 usb separate thread for resource locking and modified windows locking code 2013-05-27 23:30:18 +10:00
Con Kolivas
a32e521d0a Implement avalon_ready and avalon_wait_ready functions for when usb is ready to receive commands. 2013-05-27 17:17:42 +10:00
Con Kolivas
269a8de977 First pass rewriting serialdev into direct usb dev for avalon driver. 2013-05-27 15:43:22 +10:00
Con Kolivas
8fea60f384 Define a cts equivalent for direct usb and use it for avalon driver full. 2013-05-27 15:01:13 +10:00
Kano
87d994b6ea usb add transfer_read and commented out in icarus 2013-05-22 23:22:00 +10:00
Kano
6a0b48a650 usbutils allow unrounded control transfers 2013-05-20 22:37:52 +10:00
Kano
0c3f00c567 icarus ICA initialisation 2013-05-20 21:58:04 +10:00
Kano
56a96b4138 icarus AMU config transfers 2013-05-20 00:48:15 +10:00
Kano
db080ba969 usbutils force an unknown IDENT for zero 2013-05-19 22:13:23 +10:00
Kano
e43f265a60 usbutils name latency correctly 2013-05-19 19:09:13 +10:00
Kano
250e435313 usbutils/icarus separate FTDI transfer values and more debug 2013-05-18 01:39:56 +10:00
Kano
05a385ccfc usbutils new command for icarus 2013-05-17 13:49:41 +10:00
Kano
e89c921ab0 usb add a numeric sub-indentity for each name 2013-05-16 22:16:15 +10:00
Kano
2631b55ee2 usbutils - make FTDI handling automatic 2013-05-16 21:38:55 +10:00
Kano
05dd48ace1 usbutils/mmq fixed size usb_read default to wait for all data 2013-05-09 06:50:51 +10:00
Kano
e53040ca4d Add an ftdi usb read macro without newline 2013-05-09 06:47:41 +10:00
Kano
ebfa56db02 usbutils allow device selection to specify expected Manufacturer/Product strings 2013-04-28 12:49:32 +10:00
Kano
bd4d04b260 bflsc add volt stats 2013-04-27 00:07:42 +10:00
Kano
b7b5b9ded2 usbutils more stats for bflsc 2013-04-07 07:46:45 +10:00
Kano
8dd1ed2454 usbutils extra message requirements 2013-03-31 21:58:48 +11:00
Kano
cef96ddb8c usbutils.c usb_cmdname() usb_cmds -> string name 2013-03-30 01:21:02 +11:00
Kano
e07d21be8f usbutils use it's own internal read buffer 2013-03-17 15:28:24 +11:00
Kano
b29828e8da usbutils allow read termination match to be a string 2013-03-16 21:54:34 +11:00
Kano
154e4f4b61 usbutils allow call of usb_all() from other code 2013-03-13 11:04:05 +11:00
Kano
3f50e878a2 USB add --usb options to limit USB device selection v0.1 2013-03-11 10:58:28 +11:00
Kano
e35e8ae135 Implement and use usb_cleanup() on shutdown or restart 2013-03-04 09:45:07 +11:00
Kano
1c69417def usbutils - avoid free cgusb twice 2013-02-08 01:44:43 +11:00
Kano
05157e0802 USB in linux use the expected kernel config to check and detach - and set the configuration in linux also 2013-02-02 20:14:44 +11:00
Kano
7fbc3770b4 USB move usbdev info that needs to stay around into usbinfo 2013-02-02 20:14:36 +11:00
Kano
34bcc1c66d USB automatically handle losing the device and report nodev in the API 2013-02-02 20:14:29 +11:00
Kano
a344deb6ac rename device_api -> device_drv and all related api -> drv and add a device_drv->drv enum for identifying which driver each is 2013-02-02 20:14:19 +11:00
Kano
cbf6c71648 BFL libusb driver 2012-12-31 08:54:02 +11:00
Kano
152e7e36a2 mmq usb v0.4 + api usb stats 2012-12-02 21:48:37 +11:00