usbutils.h


Log

Author Commit Date CI Message
Con Kolivas c5694ee8 2014-02-14T21:23:42 Add the ability to whitelist previously blacklisted usb devices from the menu.
Con Kolivas 5cda70e7 2014-02-14T08:09:17 Update various copyright dates
Con Kolivas 7a435b6e 2014-02-13T23:37:50 Add a mechanism to blacklist a usb device from its cgpu.
Con Kolivas 19856d67 2014-02-13T23:12:27 Add a usb_reset by cgpu function to usbutils.
Con Kolivas 69d67af1 2014-02-12T20:46:44 Add driver for cointerra devices.
Con Kolivas be961cd1 2014-02-07T14:39:05 Add support for ANU overclocking.
Con Kolivas 68e514e6 2014-02-03T20:10:42 Add op commands necessary to control hfa fanspeeds.
Con Kolivas 5b61abc7 2014-02-01T23:53:33 Add OP_PING to hfa commands
Con Kolivas d2e6648c 2014-01-29T22:21:55 Add support for AntminerU1 devices with the icarus driver.
Con Kolivas ad6afa39 2014-01-08T22:18:02 Use the internal knowledge of the usb epinfo to determine whether we should be doing an interrupt instead of a bulk transfer, and do not send a ZLP if so, and limit read transfer to expected size automatically.
Con Kolivas c644b749 2014-01-05T20:13:02 Provide a way for usb reads to just read the size asked for with a limit bool.
Con Kolivas 6f9b5767 2014-01-04T09:35:10 Implement an mcp2210 spi cancel function.
Con Kolivas d439fc75 2014-01-03T15:17:26 Create a generic gpio pin struct and add helpers for mcp get pin val and dirs.
Con Kolivas 5015e258 2014-01-03T12:00:23 Add a set of usb commands to the usbutils defines for mcp2210 comms, and use the same command name for send and receive.
Con Kolivas b849a1b9 2014-01-02T22:25:56 Add basic device detection and updated udev rules for nanofury devices.
Kano a27c4717 2013-12-23T16:28:16 usbutils remove old code added back
Kano 97a13df4 2013-12-23T06:58:26 Merge remote-tracking branch 'drill/master' into drill
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.
Angus Gratton 73343f38 2013-12-09T11:39:03 Merge remote-tracking branch 'upstream' into merge_upstream Conflicts: usbutils.c
Con Kolivas 7ae878aa 2013-12-08T12:44:45 Initialise usb locks within usbutils.c instead of exporting them.
Con Kolivas d7c5667a 2013-12-08T12:44:45 Initialise usb locks within usbutils.c instead of exporting them.
Con Kolivas f4a96194 2013-12-04T20:42:25 Provide an hfa-dfu-boot option for resetting hashfast devices for reprogramming.
Angus Gratton 394ccaf1 2013-12-04T15:29:37 Add support for temperature display (pending firmware support)
Con Kolivas 0da9c87e 2013-12-01T15:18:16 Deprecate the usb usecps function and just split up transfers equal to the maxpacketsize on usb1.1 devices.
Con Kolivas 3bc36eb0 2013-12-01T15:18:16 Deprecate the usb usecps function and just split up transfers equal to the maxpacketsize on usb1.1 devices.
Angus Gratton e933a560 2013-11-30T22:03:26 Merge remote-tracking branch 'upstream' into merge_383 Conflicts: usbutils.c usbutils.h
Con Kolivas adea58a7 2013-11-30T10:43:39 Add hfa op usb notice macros.
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 9ce30b7b 2013-11-22T11:14:21 Zero the read buffer in _usb_read to avoid stale data and only use stack memory instead of using the bulkbuf since it is only used in _usb_read.
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.
Angus Gratton 278f157e 2013-11-10T09:12:39 Merge remote-tracking branch 'upstream/master' into new_protocol
Con Kolivas 2e11a504 2013-11-05T13:55:56 Remove now unused entries from struct cg_usb_device
Angus Gratton f066ca68 2013-11-05T10:19:11 Merge branch 'master' of github.com:ckolivas/cgminer into new_protocol Conflicts: configure.ac miner.h usbutils.c usbutils.h
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
Angus Gratton f5c69237 2013-10-25T16:19:48 Merge branch 'master' of github.com:ckolivas/cgminer into new_protocol Conflicts: usbutils.c
Angus Gratton 13fd8e30 2013-10-25T14:52:44 Add configuration command
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.
Angus Gratton bbf8a00c 2013-10-25T10:50:03 Hashing with new protocol
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