1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

usbutils.c usb_cmdname() usb_cmds -> string name

This commit is contained in:
Kano 2013-03-30 01:21:02 +11:00
parent e88652bc56
commit cef96ddb8c
2 changed files with 8 additions and 0 deletions

View File

@ -752,6 +752,13 @@ static void cgusb_check_init()
mutex_unlock(&cgusb_lock);
}
const char *usb_cmdname(enum usb_cmds cmd)
{
cgusb_check_init();
return usb_commands[cmd];
}
#ifndef WIN32
#include <errno.h>
#include <unistd.h>

View File

@ -132,6 +132,7 @@ struct device_drv;
struct cgpu_info;
void usb_all(int level);
const char *usb_cmdname(enum usb_cmds cmd);
void usb_uninit(struct cgpu_info *cgpu);
bool usb_init(struct cgpu_info *cgpu, struct libusb_device *dev, struct usb_find_devices *found);
void usb_detect(struct device_drv *drv, bool (*device_detect)(struct libusb_device *, struct usb_find_devices *));