mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-08 21:14:14 +00:00
BFL include all USB requirements
This commit is contained in:
parent
70b47a770d
commit
03c2cabab2
10
miner.h
10
miner.h
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user