|
|
|
@ -238,6 +238,7 @@ struct api_data *api_usb_stats(int *count);
@@ -238,6 +238,7 @@ struct api_data *api_usb_stats(int *count);
|
|
|
|
|
void update_usb_stats(struct cgpu_info *cgpu); |
|
|
|
|
int _usb_read(struct cgpu_info *cgpu, int ep, char *buf, size_t bufsiz, int *processed, unsigned int timeout, const char *end, enum usb_cmds cmd, bool readonce); |
|
|
|
|
int usb_ftdi_cts(struct cgpu_info *cgpu); |
|
|
|
|
int usb_ftdi_ctw(struct cgpu_info *cgpu); |
|
|
|
|
int _usb_write(struct cgpu_info *cgpu, int ep, char *buf, size_t bufsiz, int *processed, unsigned int timeout, enum usb_cmds); |
|
|
|
|
int _usb_transfer(struct cgpu_info *cgpu, uint8_t request_type, uint8_t bRequest, uint16_t wValue, uint16_t wIndex, uint32_t *data, int siz, unsigned int timeout, enum usb_cmds cmd); |
|
|
|
|
int _usb_transfer_read(struct cgpu_info *cgpu, uint8_t request_type, uint8_t bRequest, uint16_t wValue, uint16_t wIndex, char *buf, int bufsiz, int *amount, unsigned int timeout, enum usb_cmds cmd); |
|
|
|
|