Browse Source

icarus: added storage for hardware stats for Icarus-based drivers (chips, freq)

Nate Woolls 11 years ago
parent
commit
7a91dcd5ef
1 changed files with 5 additions and 0 deletions
  1. 5 0
      driver-icarus.h

+ 5 - 0
driver-icarus.h

@@ -121,6 +121,11 @@ struct ICARUS_INFO {
 	// Custom driver functions
 	// Custom driver functions
 	bool (*detect_init_func)(const char *devpath, int fd, struct ICARUS_INFO *);
 	bool (*detect_init_func)(const char *devpath, int fd, struct ICARUS_INFO *);
 	bool (*job_start_func)(struct thr_info *);
 	bool (*job_start_func)(struct thr_info *);
+
+	// Hardware information, doesn't affect anything directly
+	// Storage for Icarus-based drivers since fpga_count directly affects nonce_mask
+	uint16_t freq;
+	uint8_t chips;
 };
 };
 
 
 struct icarus_state {
 struct icarus_state {