driver-bitfury.h 723 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright 2013 Con Kolivas
  3. *
  4. * This program is free software; you can redistribute it and/or modify it
  5. * under the terms of the GNU General Public License as published by the Free
  6. * Software Foundation; either version 3 of the License, or (at your option)
  7. * any later version. See COPYING for more details.
  8. */
  9. #ifndef BITFURY_H
  10. #define BITFURY_H
  11. #include "miner.h"
  12. #include "usbutils.h"
  13. #define BF1ARRAY_SIZE 2
  14. struct bitfury_info {
  15. struct cgpu_info *base_cgpu;
  16. uint8_t version;
  17. char product[8];
  18. uint32_t serial;
  19. struct work *prevwork[BF1ARRAY_SIZE + 1];
  20. char buf[512];
  21. int tot;
  22. int nonces;
  23. int total_nonces;
  24. double saved_nonces;
  25. int cycles;
  26. struct timeval tv_start;
  27. };
  28. #endif /* BITFURY_H */