|
|
@ -356,6 +356,7 @@ enum usb_cmds { |
|
|
|
struct device_drv; |
|
|
|
struct device_drv; |
|
|
|
struct cgpu_info; |
|
|
|
struct cgpu_info; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void cancel_usb_transfers(void); |
|
|
|
void usb_all(int level); |
|
|
|
void usb_all(int level); |
|
|
|
const char *usb_cmdname(enum usb_cmds cmd); |
|
|
|
const char *usb_cmdname(enum usb_cmds cmd); |
|
|
|
void usb_applog(struct cgpu_info *bflsc, enum usb_cmds cmd, char *msg, int amount, int err); |
|
|
|
void usb_applog(struct cgpu_info *bflsc, enum usb_cmds cmd, char *msg, int amount, int err); |
|
|
@ -409,6 +410,9 @@ void *usb_resource_thread(void *userdata); |
|
|
|
#define usb_read_once_timeout(cgpu, buf, bufsiz, read, timeout, cmd) \ |
|
|
|
#define usb_read_once_timeout(cgpu, buf, bufsiz, read, timeout, cmd) \ |
|
|
|
_usb_read(cgpu, DEFAULT_INTINFO, DEFAULT_EP_IN, buf, bufsiz, read, timeout, NULL, cmd, true, false) |
|
|
|
_usb_read(cgpu, DEFAULT_INTINFO, DEFAULT_EP_IN, buf, bufsiz, read, timeout, NULL, cmd, true, false) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define usb_read_once_timeout_cancellable(cgpu, buf, bufsiz, read, timeout, cmd) \ |
|
|
|
|
|
|
|
_usb_read(cgpu, DEFAULT_INTINFO, DEFAULT_EP_IN, buf, bufsiz, read, timeout, NULL, cmd, true, true) |
|
|
|
|
|
|
|
|
|
|
|
#define usb_read_ii_once_timeout(cgpu, intinfo, buf, bufsiz, read, timeout, cmd) \ |
|
|
|
#define usb_read_ii_once_timeout(cgpu, intinfo, buf, bufsiz, read, timeout, cmd) \ |
|
|
|
_usb_read(cgpu, intinfo, DEFAULT_EP_IN, buf, bufsiz, read, timeout, NULL, cmd, true, false) |
|
|
|
_usb_read(cgpu, intinfo, DEFAULT_EP_IN, buf, bufsiz, read, timeout, NULL, cmd, true, false) |
|
|
|
|
|
|
|
|
|
|
|