usbutils.h


Log

Author Commit Date CI Message
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.
Kano dc85abd9 2013-10-03T23:19:18 Klondike update code to current git
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 48f5ff37 2013-09-22T22:38:45 Use macro expansion to only need to define usb enums and commands in one place.
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
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
Kano 05cbbd99 2013-05-28T23:56:30 CMR handle baud options
Kano df8566a7 2013-05-28T22:44:03 usb/ica add more (incomplete) CMR settings
Kano 2f94ec80 2013-05-27T23:30:18 usb separate thread for resource locking and modified windows locking code
Con Kolivas a32e521d 2013-05-27T17:17:42 Implement avalon_ready and avalon_wait_ready functions for when usb is ready to receive commands.
Con Kolivas 269a8de9 2013-05-27T15:43:22 First pass rewriting serialdev into direct usb dev for avalon driver.
Con Kolivas 8fea60f3 2013-05-27T15:01:13 Define a cts equivalent for direct usb and use it for avalon driver full.
Kano 87d994b6 2013-05-22T23:22:00 usb add transfer_read and commented out in icarus
Kano 6a0b48a6 2013-05-20T22:37:52 usbutils allow unrounded control transfers
Kano 0c3f00c5 2013-05-20T21:58:04 icarus ICA initialisation
Kano 56a96b41 2013-05-20T00:48:15 icarus AMU config transfers
Kano db080ba9 2013-05-19T22:13:23 usbutils force an unknown IDENT for zero
Kano e43f265a 2013-05-19T19:09:13 usbutils name latency correctly
Kano 250e4353 2013-05-18T01:39:56 usbutils/icarus separate FTDI transfer values and more debug
Kano 05a385cc 2013-05-17T13:49:41 usbutils new command for icarus
Kano e89c921a 2013-05-16T22:16:15 usb add a numeric sub-indentity for each name
Kano 2631b55e 2013-05-16T21:38:55 usbutils - make FTDI handling automatic
Kano 05dd48ac 2013-05-05T22:04:46 usbutils/mmq fixed size usb_read default to wait for all data
Kano e53040ca 2013-05-09T06:47:41 Add an ftdi usb read macro without newline
Kano ebfa56db 2013-04-28T12:49:32 usbutils allow device selection to specify expected Manufacturer/Product strings
Kano bd4d04b2 2013-04-27T00:07:42 bflsc add volt stats
Kano b7b5b9de 2013-04-07T07:46:45 usbutils more stats for bflsc
Kano 8dd1ed24 2013-03-31T21:58:48 usbutils extra message requirements
Kano cef96ddb 2013-03-30T01:21:02 usbutils.c usb_cmdname() usb_cmds -> string name
Kano e07d21be 2013-03-17T15:28:24 usbutils use it's own internal read buffer
Kano b29828e8 2013-03-16T21:54:34 usbutils allow read termination match to be a string
Kano 154e4f4b 2013-03-13T11:04:05 usbutils allow call of usb_all() from other code
Kano 3f50e878 2013-03-11T10:58:28 USB add --usb options to limit USB device selection v0.1
Kano e35e8ae1 2013-03-04T09:45:07 Implement and use usb_cleanup() on shutdown or restart
Kano 1c69417d 2013-02-03T14:02:31 usbutils - avoid free cgusb twice
Kano 05157e08 2013-01-26T21:49:20 USB in linux use the expected kernel config to check and detach - and set the configuration in linux also
Kano 7fbc3770 2013-01-22T21:46:21 USB move usbdev info that needs to stay around into usbinfo
Kano 34bcc1c6 2013-01-14T11:30:11 USB automatically handle losing the device and report nodev in the API
Kano a344deb6 2013-01-05T23:47:26 rename device_api -> device_drv and all related api -> drv and add a device_drv->drv enum for identifying which driver each is
Kano cbf6c716 2012-12-31T08:54:02 BFL libusb driver
Kano 152e7e36 2012-12-02T21:48:37 mmq usb v0.4 + api usb stats