File: os_fan.h

package info (click to toggle)
intel-compute-runtime 22.43.24595.41-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 57,740 kB
  • sloc: cpp: 631,142; lisp: 3,515; sh: 470; makefile: 76; python: 21
file content (28 lines) | stat: -rw-r--r-- 777 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Copyright (C) 2020 Intel Corporation
 *
 * SPDX-License-Identifier: MIT
 *
 */

#pragma once

#include <level_zero/zes_api.h>

namespace L0 {

struct OsSysman;
class OsFan {
  public:
    virtual ze_result_t getProperties(zes_fan_properties_t *pProperties) = 0;
    virtual ze_result_t getConfig(zes_fan_config_t *pConfig) = 0;
    virtual ze_result_t setDefaultMode() = 0;
    virtual ze_result_t setFixedSpeedMode(const zes_fan_speed_t *pSpeed) = 0;
    virtual ze_result_t setSpeedTableMode(const zes_fan_speed_table_t *pSpeedTable) = 0;
    virtual ze_result_t getState(zes_fan_speed_units_t units, int32_t *pSpeed) = 0;
    virtual bool isFanModuleSupported() = 0;
    static OsFan *create(OsSysman *pOsSysman);
    virtual ~OsFan() = default;
};

} // namespace L0