| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- /*
- * Copyright 2014 Nate Woolls
- * Copyright 2014 GridSeed Team
- * Copyright 2014 Dualminer Team
- *
- * 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 bfgminer_gc3355_h
- #define bfgminer_gc3355_h
- #include <stdbool.h>
- #include "miner.h"
- // options configurable by the end-user
- extern int opt_sha2_units;
- // GridSeed common code begins here
- #define GC3355_COMMAND_DELAY_MS 20
- #define SCRYPT_UNIT_OPEN 0
- #define SCRYPT_UNIT_CLOSE 1
- extern
- int opt_pll_freq;
- //mining both Scrypt & SHA2 at the same time with two processes
- //SHA2 process must be run first, no arg requirements, first serial port will be used
- //Scrypt process must be launched after, --scrypt and --dual-mode args required
- extern
- bool opt_dual_mode;
- extern
- void gc3355_reset_dtr(int fd);
- extern
- void gc3355_opt_scrypt_only_init(int fd);
- extern
- void gc3355_dualminer_init(int fd);
- extern
- void gc3355_scrypt_only_reset(int fd);
- extern
- void gc3355_init(int fd, int sha2_units, bool is_scrypt_only);
- extern void gc3355_scrypt_prepare_work(unsigned char cmd[156], struct work *);
- extern void gc3355_sha2_prepare_work(unsigned char cmd[52], struct work *, bool simple);
- #define gc3355_get_cts_status(fd) ((get_serial_cts(fd) == BGV_LOW) ? 1 : 0)
- #endif
|