|
|
@ -114,7 +114,7 @@ static inline int fsync (int fd) |
|
|
|
#include "libztex.h" |
|
|
|
#include "libztex.h" |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifdef USE_MODMINER |
|
|
|
#if defined(USE_MODMINER) || defined(USE_BITFORCE) |
|
|
|
#include "usbutils.h" |
|
|
|
#include "usbutils.h" |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
@ -374,13 +374,17 @@ struct cgpu_info { |
|
|
|
#ifdef USE_ZTEX |
|
|
|
#ifdef USE_ZTEX |
|
|
|
struct libztex_device *device_ztex; |
|
|
|
struct libztex_device *device_ztex; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#ifdef USE_MODMINER |
|
|
|
#if defined(USE_MODMINER) || defined(USE_BITFORCE) |
|
|
|
struct cg_usb_device *usbdev; |
|
|
|
struct cg_usb_device *usbdev; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef USE_ICARUS |
|
|
|
int device_fd; |
|
|
|
int device_fd; |
|
|
|
|
|
|
|
#endif |
|
|
|
}; |
|
|
|
}; |
|
|
|
#ifdef USE_MODMINER |
|
|
|
#if defined(USE_MODMINER) || defined(USE_BITFORCE) |
|
|
|
int usbstat; |
|
|
|
int usbstat; |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef USE_MODMINER |
|
|
|
char fpgaid; |
|
|
|
char fpgaid; |
|
|
|
unsigned char clock; |
|
|
|
unsigned char clock; |
|
|
|
pthread_mutex_t *modminer_mutex; |
|
|
|
pthread_mutex_t *modminer_mutex; |
|
|
|