/*
 * Copyright (C) 2020 Intel Corporation
 *
 * SPDX-License-Identifier: MIT
 *
 */

#pragma once

#include "shared/source/helpers/non_copyable_or_moveable.h"

#include "level_zero/tools/source/sysman/fan/fan.h"
#include "level_zero/tools/source/sysman/fan/os_fan.h"

namespace L0 {
class FanImp : public Fan, NEO::NonCopyableOrMovableClass {
  public:
    ze_result_t fanGetProperties(zes_fan_properties_t *pProperties) override;
    ze_result_t fanGetConfig(zes_fan_config_t *pConfig) override;
    ze_result_t fanSetDefaultMode() override;
    ze_result_t fanSetFixedSpeedMode(const zes_fan_speed_t *pSpeed) override;
    ze_result_t fanSetSpeedTableMode(const zes_fan_speed_table_t *pSpeedTable) override;
    ze_result_t fanGetState(zes_fan_speed_units_t units, int32_t *pSpeed) override;
    FanImp() = default;
    FanImp(OsSysman *pOsSysman);
    ~FanImp() override;

    OsFan *pOsFan = nullptr;
    void init();

  private:
    zes_fan_properties_t properties = {};
};
} // namespace L0
