driver-bitfury.h 639 B

1234567891011121314151617181920212223242526272829
  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. uint8_t version;
  16. char product[8];
  17. uint32_t serial;
  18. struct work *prevwork[BF1ARRAY_SIZE + 1];
  19. char buf[512];
  20. int tot;
  21. int nonces;
  22. struct timeval tv_start;
  23. };
  24. #endif /* BITFURY_H */