2016-09-06 11:29:50 +00:00
|
|
|
/**
|
2016-09-11 20:20:15 +00:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-06 11:29:50 +00:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2016-11-05 22:19:13 +00:00
|
|
|
#include <errno.h>
|
2017-02-07 20:22:20 +00:00
|
|
|
#if defined (__CYGWIN__)
|
|
|
|
#include <sys/cygwin.h>
|
|
|
|
#endif
|
2016-11-05 22:19:13 +00:00
|
|
|
|
2023-01-30 14:41:12 +00:00
|
|
|
#ifndef HC_HWMON_H
|
|
|
|
#define HC_HWMON_H
|
2016-09-06 11:29:50 +00:00
|
|
|
|
2019-04-30 11:38:44 +00:00
|
|
|
int hm_get_threshold_slowdown_with_devices_idx (hashcat_ctx_t *hashcat_ctx, const int backend_device_idx);
|
|
|
|
int hm_get_threshold_shutdown_with_devices_idx (hashcat_ctx_t *hashcat_ctx, const int backend_device_idx);
|
|
|
|
int hm_get_temperature_with_devices_idx (hashcat_ctx_t *hashcat_ctx, const int backend_device_idx);
|
|
|
|
int hm_get_fanpolicy_with_devices_idx (hashcat_ctx_t *hashcat_ctx, const int backend_device_idx);
|
|
|
|
int hm_get_fanspeed_with_devices_idx (hashcat_ctx_t *hashcat_ctx, const int backend_device_idx);
|
2021-06-19 18:32:07 +00:00
|
|
|
#if defined(__APPLE__)
|
|
|
|
int hm_get_fanspeed_apple (hashcat_ctx_t *hashcat_ctx, char *fan_speed_buf);
|
|
|
|
#endif
|
2019-04-30 11:38:44 +00:00
|
|
|
int hm_get_buslanes_with_devices_idx (hashcat_ctx_t *hashcat_ctx, const int backend_device_idx);
|
|
|
|
int hm_get_utilization_with_devices_idx (hashcat_ctx_t *hashcat_ctx, const int backend_device_idx);
|
|
|
|
int hm_get_memoryspeed_with_devices_idx (hashcat_ctx_t *hashcat_ctx, const int backend_device_idx);
|
|
|
|
int hm_get_corespeed_with_devices_idx (hashcat_ctx_t *hashcat_ctx, const int backend_device_idx);
|
|
|
|
int hm_get_throttle_with_devices_idx (hashcat_ctx_t *hashcat_ctx, const int backend_device_idx);
|
2016-09-28 20:28:44 +00:00
|
|
|
|
2016-10-06 09:10:00 +00:00
|
|
|
int hwmon_ctx_init (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
void hwmon_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
|
2016-09-28 13:26:56 +00:00
|
|
|
|
2023-01-30 14:41:12 +00:00
|
|
|
#endif // HC_HWMON_H
|