mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-19 14:22:04 +01:00
40 lines
737 B
C
40 lines
737 B
C
#ifndef GLOBAL_STATE_H_
|
|
#define GLOBAL_STATE_H_
|
|
|
|
#include "work_queue.h"
|
|
#include "bm1397.h"
|
|
#include "system.h"
|
|
#include "stratum_api.h"
|
|
#include "asic_task.h"
|
|
#include "power_management_task.h"
|
|
|
|
|
|
#define STRATUM_USER CONFIG_STRATUM_USER
|
|
|
|
|
|
typedef struct {
|
|
work_queue stratum_queue;
|
|
work_queue ASIC_jobs_queue;
|
|
|
|
bm1397Module BM1397_MODULE;
|
|
SystemModule SYSTEM_MODULE;
|
|
AsicTaskModule ASIC_TASK_MODULE;
|
|
PowerManagementModule POWER_MANAGEMENT_MODULE;
|
|
|
|
|
|
char * extranonce_str;
|
|
int extranonce_2_len;
|
|
int abandon_work;
|
|
|
|
uint8_t * valid_jobs;
|
|
pthread_mutex_t valid_jobs_lock;
|
|
|
|
uint32_t stratum_difficulty;
|
|
uint32_t version_mask;
|
|
|
|
int sock;
|
|
|
|
} GlobalState;
|
|
|
|
|
|
#endif /* GLOBAL_STATE_H_ */ |