2013-09-24 10:59:10 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2013 Con Kolivas
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the Free
|
|
|
|
* Software Foundation; either version 3 of the License, or (at your option)
|
|
|
|
* any later version. See COPYING for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BITFURY_H
|
|
|
|
#define BITFURY_H
|
|
|
|
|
2013-09-25 05:30:54 +00:00
|
|
|
#include "miner.h"
|
2013-09-24 10:59:10 +00:00
|
|
|
#include "usbutils.h"
|
|
|
|
|
2013-09-26 01:46:09 +00:00
|
|
|
#define BF1ARRAY_SIZE 2
|
|
|
|
|
2013-09-24 12:58:10 +00:00
|
|
|
struct bitfury_info {
|
2013-09-27 00:36:23 +00:00
|
|
|
struct cgpu_info *base_cgpu;
|
2013-09-24 12:58:10 +00:00
|
|
|
uint8_t version;
|
|
|
|
char product[8];
|
|
|
|
uint32_t serial;
|
2013-09-26 01:46:09 +00:00
|
|
|
struct work *prevwork[BF1ARRAY_SIZE + 1];
|
2013-09-25 12:12:34 +00:00
|
|
|
char buf[512];
|
|
|
|
int tot;
|
2013-09-25 12:22:05 +00:00
|
|
|
int nonces;
|
2013-10-09 12:06:46 +00:00
|
|
|
int total_nonces;
|
|
|
|
double saved_nonces;
|
|
|
|
int cycles;
|
2013-09-26 02:11:25 +00:00
|
|
|
struct timeval tv_start;
|
2013-09-24 12:58:10 +00:00
|
|
|
};
|
|
|
|
|
2013-09-24 10:59:10 +00:00
|
|
|
#endif /* BITFURY_H */
|