| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- /*
- * 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 AVALON_H
- #define AVALON_H
- struct avalon_task {
- uint8_t reset :1;
- uint8_t flush_fifo :1;
- uint8_t fan_eft :1;
- uint8_t timer_eft :1;
- uint8_t chip_num :4;
- uint8_t fan_pwm_data;
- uint8_t timeout_data;
- uint8_t miner_num; // Word[0]
- uint8_t nonce_elf :1;
- uint32_t miner_ctrl :31;
- uint32_t pad0; //Word[2:1]
- uint32_t midstate[8];
- uint32_t data[3];
- // nonce_range: Word[??:14]
- } __attribute__((packed));
- struct avalon_result {
- uint32_t data[3];
- uint32_t midstate[8];
- uint32_t nonce;
- uint32_t reserved;
- } __attribute__((packed));
- #define AVALON_MINER_THREADS 1
- #endif /* AVALON_H */
|