mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-09 20:21:01 +00:00
Separate out asic fpga and opencl drivers in the driver parse commands macro for use individually as needed.
This commit is contained in:
parent
39c2e662a7
commit
1ef38f82e8
20
miner.h
20
miner.h
@ -231,17 +231,25 @@ static inline int fsync (int fd)
|
||||
#define MAX(x, y) ((x) > (y) ? (x) : (y))
|
||||
|
||||
/* Put avalon last to make it the last device it tries to detect to prevent it
|
||||
* trying to claim same chip but different devices. */
|
||||
#define DRIVER_PARSE_COMMANDS \
|
||||
DRIVER_ADD_COMMAND(bflsc) \
|
||||
* trying to claim same chip but different devices. Adding a device here will
|
||||
* update all macros in the code that use the *_PARSE_COMMANDS macros for each
|
||||
* listed driver. */
|
||||
#define FPGA_PARSE_COMMANDS \
|
||||
DRIVER_ADD_COMMAND(bitforce) \
|
||||
DRIVER_ADD_COMMAND(bitfury) \
|
||||
DRIVER_ADD_COMMAND(icarus) \
|
||||
DRIVER_ADD_COMMAND(modminer) \
|
||||
DRIVER_ADD_COMMAND(opencl) \
|
||||
DRIVER_ADD_COMMAND(ztex) \
|
||||
DRIVER_ADD_COMMAND(ztex)
|
||||
|
||||
#define ASIC_PARSE_COMMANDS \
|
||||
DRIVER_ADD_COMMAND(bflsc) \
|
||||
DRIVER_ADD_COMMAND(bitfury) \
|
||||
DRIVER_ADD_COMMAND(avalon)
|
||||
|
||||
#define DRIVER_PARSE_COMMANDS \
|
||||
DRIVER_ADD_COMMAND(opencl) \
|
||||
FPGA_PARSE_COMMANDS \
|
||||
ASIC_PARSE_COMMANDS
|
||||
|
||||
/* Create drv_driver enum from DRIVER_PARSE_COMMANDS macro */
|
||||
#define DRIVER_ADD_COMMAND(X) DRIVER_##X,
|
||||
enum drv_driver {
|
||||
|
Loading…
x
Reference in New Issue
Block a user