titan-asic.h 554 B

123456789101112131415161718
  1. #ifndef __TITAN_ASIC_H
  2. #define __TITAN_ASIC_H
  3. #define KNC_TITAN_MAX_ASICS 6
  4. #define KNC_TITAN_DIES_PER_ASIC 4
  5. #define KNC_TITAN_CORES_PER_DIE 48
  6. #define KNC_TITAN_CORES_PER_ASIC (KNC_TITAN_CORES_PER_DIE * KNC_TITAN_DIES_PER_ASIC)
  7. struct titan_info_response {
  8. uint64_t pll_state;
  9. uint16_t cores;
  10. bool want_work[KNC_TITAN_CORES_PER_DIE];
  11. bool have_report[KNC_TITAN_CORES_PER_DIE];
  12. };
  13. bool knc_titan_spi_get_info(const char *repr, struct spi_port * const spi, struct titan_info_response *resp, int die, int core_hint);
  14. #endif /* __TITAN_ASIC_H */