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

#pragma once
#include "shared/source/helpers/hw_info.h"
#include "shared/source/os_interface/driver_info.h"

#include "level_zero/sysman/source/device/sysman_hw_device_id.h"
#include <level_zero/zes_api.h>

#include <memory>
#include <vector>

namespace L0 {
namespace Sysman {

struct SysmanDeviceImp;

struct OsSysman {
    virtual ~OsSysman() {};

    virtual ze_result_t init() = 0;
    virtual ze_result_t initSurvivabilityMode(std::unique_ptr<NEO::HwDeviceId> hwDeviceId) = 0;
    static OsSysman *create(SysmanDeviceImp *pSysmanImp);
    virtual uint32_t getSubDeviceCount() = 0;
    virtual bool isDeviceInSurvivabilityMode() = 0;
    virtual const NEO::HardwareInfo &getHardwareInfo() const = 0;
    virtual void getDeviceUuids(std::vector<std::string> &deviceUuids) = 0;
    virtual std::unique_ptr<NEO::PhysicalDevicePciBusInfo> getPciBdfInfo() const = 0;
};

} // namespace Sysman
} // namespace L0
