|
@@ -170,6 +170,16 @@ static void bfsb_shutdown(struct thr_info *thr)
|
|
|
spi_bfsb_select_bank(-1);
|
|
spi_bfsb_select_bank(-1);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+static struct api_data *bfsb_api_device_status(struct cgpu_info *cgpu)
|
|
|
|
|
+{
|
|
|
|
|
+ struct bitfury_device * const bitfury = cgpu->device_data;
|
|
|
|
|
+ struct api_data *root = bitfury_api_device_status(cgpu);
|
|
|
|
|
+
|
|
|
|
|
+ root = api_add_uint(root, "Slot", &(bitfury->slot), false);
|
|
|
|
|
+
|
|
|
|
|
+ return root;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
struct device_drv bfsb_drv = {
|
|
struct device_drv bfsb_drv = {
|
|
|
.dname = "bfsb",
|
|
.dname = "bfsb",
|
|
|
.name = "BSB",
|
|
.name = "BSB",
|
|
@@ -180,5 +190,6 @@ struct device_drv bfsb_drv = {
|
|
|
.poll = bitfury_do_io,
|
|
.poll = bitfury_do_io,
|
|
|
.job_start = bitfury_do_io,
|
|
.job_start = bitfury_do_io,
|
|
|
.job_process_results = bitfury_job_process_results,
|
|
.job_process_results = bitfury_job_process_results,
|
|
|
|
|
+ .get_api_extra_device_status = bfsb_api_device_status,
|
|
|
.thread_shutdown = bfsb_shutdown,
|
|
.thread_shutdown = bfsb_shutdown,
|
|
|
};
|
|
};
|