Commit 50fa58857cdcb8b804b90e2b8eed7f3d7697ce5b

Con Kolivas 2014-02-23T22:56:14

Updated hf protocol

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))