mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-10 04:31:03 +00:00
Style changes.
This commit is contained in:
parent
c0cd006f42
commit
8ebf4f6ecd
32
miner.h
32
miner.h
@ -260,29 +260,29 @@ struct thr_info;
|
|||||||
struct work;
|
struct work;
|
||||||
|
|
||||||
struct device_api {
|
struct device_api {
|
||||||
char*dname;
|
char *dname;
|
||||||
char*name;
|
char *name;
|
||||||
|
|
||||||
// API-global functions
|
// API-global functions
|
||||||
void (*api_detect)();
|
void (*api_detect)();
|
||||||
|
|
||||||
// Device-specific functions
|
// Device-specific functions
|
||||||
void (*reinit_device)(struct cgpu_info*);
|
void (*reinit_device)(struct cgpu_info *);
|
||||||
void (*get_statline_before)(char*, struct cgpu_info*);
|
void (*get_statline_before)(char *, struct cgpu_info *);
|
||||||
void (*get_statline)(char*, struct cgpu_info*);
|
void (*get_statline)(char *, struct cgpu_info *);
|
||||||
struct api_data *(*get_api_stats)(struct cgpu_info*);
|
struct api_data *(*get_api_stats)(struct cgpu_info *);
|
||||||
bool (*get_stats)(struct cgpu_info*);
|
bool (*get_stats)(struct cgpu_info *);
|
||||||
void (*identify_device)(struct cgpu_info*); // e.g. to flash a led
|
void (*identify_device)(struct cgpu_info *); // e.g. to flash a led
|
||||||
|
|
||||||
// Thread-specific functions
|
// Thread-specific functions
|
||||||
bool (*thread_prepare)(struct thr_info*);
|
bool (*thread_prepare)(struct thr_info *);
|
||||||
uint64_t (*can_limit_work)(struct thr_info*);
|
uint64_t (*can_limit_work)(struct thr_info *);
|
||||||
bool (*thread_init)(struct thr_info*);
|
bool (*thread_init)(struct thr_info *);
|
||||||
bool (*prepare_work)(struct thr_info*, struct work*);
|
bool (*prepare_work)(struct thr_info *, struct work *);
|
||||||
int64_t (*scanhash)(struct thr_info*, struct work*, int64_t);
|
int64_t (*scanhash)(struct thr_info *, struct work *, int64_t);
|
||||||
void (*hw_error)(struct thr_info*);
|
void (*hw_error)(struct thr_info *);
|
||||||
void (*thread_shutdown)(struct thr_info*);
|
void (*thread_shutdown)(struct thr_info *);
|
||||||
void (*thread_enable)(struct thr_info*);
|
void (*thread_enable)(struct thr_info *);
|
||||||
};
|
};
|
||||||
|
|
||||||
enum dev_enable {
|
enum dev_enable {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user