2011-06-27 11:31:05 +10:00
|
|
|
#ifndef __FINDNONCE_H__
|
|
|
|
#define __FINDNONCE_H__
|
2011-06-14 10:32:54 +10:00
|
|
|
#include "miner.h"
|
2011-07-05 19:47:03 +10:00
|
|
|
#include "config.h"
|
2011-06-14 10:32:54 +10:00
|
|
|
|
2011-06-29 11:19:43 +10:00
|
|
|
#define MAXTHREADS (0xFFFFFFFEULL)
|
2012-08-23 10:48:15 +10:00
|
|
|
#define MAXBUFFERS (0x10)
|
2011-08-17 16:07:15 +10:00
|
|
|
#define BUFFERSIZE (sizeof(uint32_t) * MAXBUFFERS)
|
2012-08-23 10:48:15 +10:00
|
|
|
#define FOUND (0x0F)
|
2011-06-17 14:00:41 +10:00
|
|
|
|
2011-07-05 19:47:03 +10:00
|
|
|
#ifdef HAVE_OPENCL
|
2011-06-14 10:32:54 +10:00
|
|
|
extern void precalc_hash(dev_blk_ctx *blk, uint32_t *state, uint32_t *data);
|
2011-06-29 23:38:16 +10:00
|
|
|
extern void postcalc_hash_async(struct thr_info *thr, struct work *work, uint32_t *res);
|
2011-07-05 19:47:03 +10:00
|
|
|
#endif /* HAVE_OPENCL */
|
2011-06-27 11:31:05 +10:00
|
|
|
#endif /*__FINDNONCE_H__*/
|