titan-asic.h 1.0 KB

12345678910111213141516171819202122232425
  1. #ifndef __TITAN_ASIC_H
  2. #define __TITAN_ASIC_H
  3. #include "knc-asic.h"
  4. #include "knc-transport.h"
  5. #define KNC_TITAN_MAX_ASICS 6
  6. #define KNC_TITAN_DIES_PER_ASIC 4
  7. #define KNC_TITAN_CORES_PER_DIE 571
  8. #define KNC_TITAN_CORES_PER_ASIC (KNC_TITAN_CORES_PER_DIE * KNC_TITAN_DIES_PER_ASIC)
  9. #define KNC_TITAN_WORKSLOTS_PER_CORE 2
  10. #define KNC_TITAN_THREADS_PER_CORE 8
  11. #define KNC_TITAN_NONCES_PER_REPORT 5
  12. struct nonce_report {
  13. uint32_t nonce;
  14. uint8_t slot;
  15. };
  16. bool knc_titan_get_info(const char *repr, void * const ctx, int channel, int die, struct knc_die_info *die_info);
  17. bool knc_titan_set_work(const char *repr, void * const ctx, int channel, int die, int core, int slot, struct work *work, bool urgent, bool *work_accepted, struct knc_report *report);
  18. bool knc_titan_get_report(const char *repr, void * const ctx, int channel, int die, int core, struct knc_report *report);
  19. bool knc_titan_setup_core_local(const char *repr, void * const ctx, int channel, int die, int core, struct titan_setup_core_params *params);
  20. #endif /* __TITAN_ASIC_H */