Updated hf protocol
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 93bab93..07f01e7 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -302,7 +302,10 @@ static const char *hf_usb_init_errors[] = {
"Main board FPGA register read/write test failed",
"ASIC core power fault",
"Dynamic baud rate change timeout",
- "Address failure"
+ "Address failure",
+ "Regulator programming error",
+ "Address range inconsistent after mixed reconfiguration",
+ "Timeout after mixed reconfiguration"
};
static bool hfa_reset(struct cgpu_info *hashfast, struct hashfast_info *info)
diff --git a/hf_protocol.h b/hf_protocol.h
index 05597cf..7a1a0c2 100644
--- a/hf_protocol.h
+++ b/hf_protocol.h
@@ -81,6 +81,7 @@
#define OP_CORE_MAP 141 // Return core map
#define OP_VERSION 142 // Version information
#define OP_FAN 143 // Set Fan Speed
+#define OP_NAME 144 // System name write/read
#define OP_USB_DEBUG 255
// HashFast vendor and product ID's
@@ -113,6 +114,9 @@
#define E_CORE_POWER_FAULT 17
#define E_BAUD_TIMEOUT 18
#define E_ADDRESS_FAILURE 19
+#define E_IR_PROG_FAILURE 20
+#define E_MIXED_MISMATCH 21
+#define E_MIXED_TIMEOUT 22
#define U32SIZE(x) (sizeof(x)/sizeof(uint32_t))