usbutils.h


Log

Author Commit Date CI Message
Con Kolivas b8d8ebfa 2013-11-22T09:54:58 Simplify the end of message detection in _usb_read and allow it to return without doing another read if the message is already in the buffer.
Con Kolivas c59d260b 2013-11-16T08:19:57 Add extra bxf commands to usbutils
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 c1c834a6 2013-11-14T11:58:21 Create and destroy a basic bxf read thread.
Con Kolivas 67c3826b 2013-11-14T10:37:23 Uniquely identify the BF1 and BXF bitfury devices.
Con Kolivas 2e11a504 2013-11-05T13:55:56 Remove now unused entries from struct cg_usb_device
Con Kolivas 8fb7a0d1 2013-11-04T08:45:09 Always use a usb read buffer instead of having to explicitly enable it.
Con Kolivas fc80e2fe 2013-11-03T20:31:04 Deprecate preferred packet size functions in usbutils since they're unhelpful.
Con Kolivas ccb74239 2013-11-03T09:23:45 Use an int for usb_read/write to identify overruns.
Con Kolivas 5c9f3036 2013-10-29T22:25:05 Merge branch 'master' into hashfast
Kano 5bd1b560 2013-10-28T07:41:15 usbutils - usb_nodev() allow a driver to drop a device
Con Kolivas f29f6121 2013-10-25T14:35:56 Merge branch 'master' into hashfast
Con Kolivas 0da551fa 2013-10-25T12:30:39 Use a linked list for all usb transfers instead of just cancellable ones.
Con Kolivas 2b998936 2013-10-25T04:13:32 Add a usb_read_ii_timeout_cancellable wrapper
Con Kolivas d2feacdf 2013-10-24T22:26:13 Cancel cancellable usb transfers on work restart messages.
Con Kolivas c96f0965 2013-10-24T21:54:35 Add wrappers for usb_read_cancellable and usb_read_timeout_cancellable
Con Kolivas 19ec360f 2013-10-24T21:45:41 Pass the cancellable option to _usb_read options to decide on whether to add usb transfers to the list of cancellable transfers.
Con Kolivas b639e688 2013-10-24T21:19:29 Merge branch 'master' into hashfast
Con Kolivas 81dfe60d 2013-10-24T20:41:55 Keep the libusb event handle polling thread active until there are no async usb transfers in progress.
Con Kolivas 5ee279ca 2013-10-21T13:30:17 Add atmel init sequence likely to be required on hashfast for windows to work.
Con Kolivas 1bafafb5 2013-10-21T11:05:38 Enable USB buffers for hashfast on initialise and clear buffers where appropriate.
Con Kolivas f5baf9f5 2013-10-18T19:12:13 Merge branch 'master' into hashfast Conflicts: usbutils.h
Con Kolivas 2bbe492f 2013-10-15T08:45:13 Merge with master
Con Kolivas 58dd80e4 2013-10-13T21:39:59 Implement a hashfast get_header function which reads till it finds a header preamble or times out.
Con Kolivas 4b9eb370 2013-10-13T20:28:57 Implement hashfast send header function and add relevant usb op codes to arrays, beginning reset sequence on hashfast detection.
Con Kolivas 9b5c5349 2013-10-13T16:41:53 Merge branch 'master' into hashfast Conflicts: api.c configure.ac miner.h usbutils.c usbutils.h
Chris Chua b509e843 2013-10-03T20:11:37 using separate identifier for bitburner fury boards
Con Kolivas b5dfacef 2013-10-11T10:15:06 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.
Con Kolivas 7318ecee 2013-10-07T23:34:01 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.
Kano 51418f79 2013-10-03T23:19:18 Klondike update code to current git
Con Kolivas a6a94070 2013-10-01T14:40:30 Use asynchronous transfers for all bulk transfers, allowing us to use our own timers and cancelling transfers that take too long.
Con Kolivas 59ff31d8 2013-10-07T17:11:33 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.
Con Kolivas 3b266594 2013-10-07T14:57:08 Merge branch 'master' into libusbx Conflicts: api.c miner.h usbutils.c
Kano dc85abd9 2013-10-03T23:19:18 Klondike update code to current git
Con Kolivas 69c01a14 2013-10-01T14:40:30 Use asynchronous transfers for all bulk transfers, allowing us to use our own timers and cancelling transfers that take too long.
Con Kolivas f49a3c76 2013-09-30T08:43:29 Merge branch 'master' into hashfast Conflicts: Makefile.am api.c cgminer.c configure.ac miner.h usbutils.c usbutils.h
Con Kolivas 0a559984 2013-09-29T23:44:45 Add magic init sequence required on BF1 devices to get them mining on windows.
Con Kolivas 14887ba8 2013-09-29T17:44:41 usbinfo.devlock is only ever write locked so convert it to a mutex
Con Kolivas ff90e6ae 2013-09-29T17:44:41 usbinfo.devlock is only ever write locked so convert it to a mutex
Con Kolivas 303a7631 2013-09-29T13:08:15 Deuglify use of usb parse commands macro in usbutils.
Con Kolivas 621114c5 2013-09-27T13:08:36 Merge branch 'master' of github.com:ckolivas/cgminer into redfury
Kano d3a3b3a7 2013-09-27T13:07:04 usbutils allow PrefPacketSize per endpoint
Con Kolivas ce16bd2b 2013-09-27T12:38:02 Remove magic control sequences on open/close on BF1 and just flush the read buffers.
Con Kolivas 1f74b2cd 2013-09-27T10:50:33 Perform interrupt read flush as per serial open on BF1 devices.
Con Kolivas 1a020281 2013-09-27T09:41:55 Add more read_ii variants to usbutils.
Con Kolivas 4f6c7ee0 2013-09-27T09:39:26 Name remainder of BFU usb commands used.
Con Kolivas a39a9c27 2013-09-27T08:32:54 Merge branch 'master' into redfury
Kano b932fc0a 2013-09-26T21:04:28 usbutils - which_intinfo not requried
Kano 36d86534 2013-09-26T20:58:29 usbutils - interfaces must all be on one handle - ep implies the interface
Con Kolivas 435065c8 2013-09-26T07:24:09 Rename BF1 devices BF1
Con Kolivas 55c6e55c 2013-09-25T16:31:37 Name the work request and result usb commands for BF1
Con Kolivas 54ac3555 2013-09-24T22:28:56 Add commands for getting BF1 bitfury info
Con Kolivas 9a3684b8 2013-09-24T22:16:31 Add magic BF1 bitfury open and close control sequences.
Con Kolivas 99c83896 2013-09-24T20:39:59 Add bf1 device information to usbutils to enable device detection.
Con Kolivas 293622cf 2013-09-22T22:54:18 Merge branch 'master' into hashfast Conflicts: usbutils.c usbutils.h
Con Kolivas 48f5ff37 2013-09-22T22:38:45 Use macro expansion to only need to define usb enums and commands in one place.
Con Kolivas 118f9038 2013-09-22T20:18:18 Merge branch 'master' into hashfast
Con Kolivas 62f6fefb 2013-09-21T08:33:11 Create a struct array of hashfast commands and their associated usb command names.
Kano 0f0b0f81 2013-09-19T21:41:27 usbutils set_interface is no longer valid
Kano 166147a8 2013-09-19T21:11:40 ubsutils interfaces much each have their own handle
Con Kolivas d866973d 2013-09-19T17:19:51 Add templates for USB commands likely to be used by hashfast driver.
Con Kolivas 78932aa1 2013-09-19T10:38:08 Provide basic structure for a hashfast driver.
Kano 00c2c336 2013-09-17T21:42:11 usbutils kernel_detach should use the interface number
Kano 24858de6 2013-09-17T19:19:43 usbutils - allow the driver to change which_intinfo
Kano 67b9ee44 2013-09-14T16:53:09 usbutils specifically track handles and interfaces
Kano 08483717 2013-09-14T01:18:14 usbutils - allow a device to use multiple interfaces (and better var names)
Con Kolivas deb7be72 2013-08-20T21:07:38 Use the reentrant cgsleep functions for usecps in usbutils.
Kano 96c0c317 2013-08-19T20:34:37 BTB get version from Firmware
Chris Chua b0f4d55b 2013-07-29T21:39:29 changes to Avalon driver for BitBurner boards
Kano 759ce6e7 2013-07-20T13:20:24 usb timeouts - min/max also
Kano 2dffc96e 2013-07-20T12:56:57 log USB timeouts in API stats
Kano 4cb7cfb2 2013-07-18T09:59:10 usbutils use a heap buffer for bulk read rather than stack
Kano 2beb30f1 2013-06-28T22:55:55 bflsc get volts stats needs its own GETVOLTS
Kano 9ecef180 2013-06-26T12:53:05 usbutils/icarus include more locking to usbdev access
Kano fc89f170 2013-06-25T22:23:06 usbutils add delay API stats
Kano 527c6ee2 2013-06-25T21:35:21 usbutils optional cps IO control - but not enabled
Con Kolivas 0cd2c5c3 2013-06-23T10:12:44 Use the info timeout for read_nl in getidentify bflsc.
Con Kolivas 9246bbc6 2013-06-23T10:11:22 Add a usb_read_nl_timeout macro.
Con Kolivas 4e155fd6 2013-06-22T22:33:10 Hard code the preferred packet size for AMU, BLT and ICA.
Con Kolivas abdf7510 2013-06-21T17:36:20 Reinstate the maxPacketSize determined by the end descriptor but allow the driver to override it.
Con Kolivas f4d74116 2013-06-19T13:18:15 Limit USB transfers to the max size reported by the descriptors.
Kano d2cb4129 2013-06-16T21:58:01 record and report USB pipe errors via API stats
Kano 84ffcbc5 2013-06-14T01:09:50 Use mining start time for device MH/U calculations
Kano 7d35c692 2013-06-10T18:52:18 ubsutils lock all access to nodev and cgusb
Kano 9287ee90 2013-06-10T15:22:37 USB control creation and free of cgpu
Con Kolivas 630e7d76 2013-06-09T21:33:20 Set BFLSC fan speed coarsely to keep it under 60 or auto as per specs saying it tries to stay below 60.
Con Kolivas fd41eb4e 2013-06-09T19:03:56 Limit usbutils LATENCY_STD to 32ms to keep transfers under 512 bytes.
Con Kolivas 7fc96664 2013-06-09T17:15:48 Add a usb_read_ok_timeout wrapper to cope with slow init'ing devices.
Kano 8478ee44 2013-06-07T07:02:55 AMU usbstatus correct name from enable UART
Kano a7425c6c 2013-06-07T01:52:51 Icarus AMU enable the UART
Con Kolivas e186c5cf 2013-06-07T00:38:10 Revert "Protect all usb writes reads and unplugs with a mutex lock and check libusb release has succeeded before proceeding with a libusb close." This reverts commit beb5f8889de4f5491c831a4bd8824b9c514dbafc.
Con Kolivas beb5f888 2013-06-07T00:25:49 Protect all usb writes reads and unplugs with a mutex lock and check libusb release has succeeded before proceeding with a libusb close.
Kano f366d53f 2013-06-05T01:37:16 add usb_ftdi_set_latency
Kano 4368a04f 2013-06-05T01:07:16 usbutils optional read buffering
Kano 1c64f3b6 2013-06-04T13:17:57 usb set FTDI latency higher to minimise status bytes
Con Kolivas eec1a86a 2013-05-30T22:53:07 Update copyrights of modified files.
Kano 74d7f556 2013-05-30T16:00:41 usbutils automatically track IO errors
Con Kolivas 0177b410 2013-05-29T00:33:56 Use the USB wrappers for avalon, telling usbutils that we want the raw data.
Con Kolivas 876e7e58 2013-05-29T00:01:54 Merge branch 'icarus-dev' into usbdev Conflicts: usbutils.h