1 Star 0 Fork 1

actionchen / cgminer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
knc-transport.h 807 Bytes
一键复制 编辑 原始数据 按行查看 历史
Henrik Nordstrom 提交于 2014-06-18 16:41 . KnCMiner driver generation 2
/*
* Transport layer interface for KnCminer devices
*
* Copyright 2014 KnCminer
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 3 of the License, or (at your option)
* any later version. See COPYING for more details.
*/
#define MAX_ASICS 6
#define NUM_DIES_IN_ASIC 4
#define CORES_IN_DIE 48
#define CORES_PER_ASIC (NUM_DIES_IN_ASIC * CORES_IN_DIE)
#define MAX_BYTES_IN_SPI_XSFER 4096
void *knc_trnsp_new(int dev_idx);
void knc_trnsp_free(void *opaque_ctx);
int knc_trnsp_transfer(void *opaque_ctx, uint8_t *txbuf, uint8_t *rxbuf, int len);
bool knc_trnsp_asic_detect(void *opaque_ctx, int chip_id);
void knc_trnsp_periodic_check(void *opaque_ctx);
1
https://gitee.com/actionchen/cgminer.git
git@gitee.com:actionchen/cgminer.git
actionchen
cgminer
cgminer
master

搜索帮助