Edit

thodg/cgminer/driver-bitfury.h

Branch :

  • Show log

    Commit

  • Author : Con Kolivas
    Date : 2013-10-09 23:06:46
    Hash : b30ae4a2
    Message : Use fractional hashrate return values in bitfury_scanhash to minimise the number of times we return 0 based on hashrate so far to further damp out displayed hashrate.

  • driver-bitfury.h
  • /*
     * Copyright 2013 Con Kolivas
     *
     * 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.
     */
    
    #ifndef BITFURY_H
    #define BITFURY_H
    
    #include "miner.h"
    #include "usbutils.h"
    
    #define BF1ARRAY_SIZE 2
    
    struct bitfury_info {
    	struct cgpu_info *base_cgpu;
    	uint8_t version;
    	char product[8];
    	uint32_t serial;
    	struct work *prevwork[BF1ARRAY_SIZE + 1];
    	char buf[512];
    	int tot;
    	int nonces;
    	int total_nonces;
    	double saved_nonces;
    	int cycles;
    	struct timeval tv_start;
    };
    
    #endif /* BITFURY_H */