| 12345678910111213141516171819202122232425262728293031323334 |
- #ifndef __LIBBITFURY_H__
- #define __LIBBITFURY_H__
- #include "miner.h"
- extern int libbitfury_detectChips(void);
- struct bitfury_payload {
- unsigned char midstate[32];
- unsigned int junk[8];
- unsigned m7;
- unsigned ntime;
- unsigned nbits;
- unsigned nnonce;
- };
- struct bitfury_device {
- unsigned char osc[8];
- unsigned newbuf[17];
- unsigned oldbuf[17];
- struct work * work;
- struct work * owork;
- int job_switched;
- struct bitfury_payload payload;
- struct bitfury_payload opayload;
- unsigned int results[16];
- int results_n;
- };
- int libbitfury_readHashData(unsigned int *res);
- int libbitfury_sendHashData(struct bitfury_device *bf, int chip_n);
- void work_to_payload(struct bitfury_payload *p, struct work *w);
- #endif /* __LIBBITFURY_H__ */
|