|
|
@@ -15,6 +15,7 @@
|
|
|
#include <unistd.h>
|
|
|
|
|
|
#include "deviceapi.h"
|
|
|
+#include "lowlevel.h"
|
|
|
#include "lowl-vcom.h"
|
|
|
#include "miner.h"
|
|
|
|
|
|
@@ -62,6 +63,12 @@ void rockminer_job_buf_set_freq(uint8_t * const buf, const unsigned short freq)
|
|
|
buf[0x31] = (freq / 10) - 1;
|
|
|
}
|
|
|
|
|
|
+static
|
|
|
+bool rockminer_lowl_match(const struct lowlevel_device_info * const info)
|
|
|
+{
|
|
|
+ return lowlevel_match_product(info, "R-BOX miner") || lowlevel_match_product(info, "RX-BOX miner");
|
|
|
+}
|
|
|
+
|
|
|
static const uint8_t golden_midstate[] = {
|
|
|
0x4a, 0x54, 0x8f, 0xe4, 0x71, 0xfa, 0x3a, 0x9a,
|
|
|
0x13, 0x71, 0x14, 0x45, 0x56, 0xc3, 0xf6, 0x4d,
|
|
|
@@ -478,6 +485,7 @@ struct device_drv rockminer_drv = {
|
|
|
.dname = "rockminer",
|
|
|
.name = "RKM",
|
|
|
|
|
|
+ .lowl_match = rockminer_lowl_match,
|
|
|
.lowl_probe = rockminer_lowl_probe,
|
|
|
|
|
|
.thread_init = rockminer_init,
|